<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span id="local-6989586621680804965"><span id="local-6989586621680804966"><span id="local-6989586621680804967"></span></span></span><span class="hs-comment">{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
-}</span><span>
</span><span id="line-5"></span><span>
</span><span id="line-6"></span><span class="hs-pragma">{-# LANGUAGE DeriveDataTypeable #-}</span><span>
</span><span id="line-7"></span><span class="hs-pragma">{-# LANGUAGE BangPatterns #-}</span><span>
</span><span id="line-8"></span><span class="hs-pragma">{-# LANGUAGE OverloadedStrings #-}</span><span>
</span><span id="line-9"></span><span class="hs-pragma">{-# LANGUAGE LambdaCase #-}</span><span>
</span><span id="line-10"></span><span>
</span><span id="line-11"></span><span class="hs-comment">-- |</span><span>
</span><span id="line-12"></span><span class="hs-comment">-- #name_types#</span><span>
</span><span id="line-13"></span><span class="hs-comment">-- GHC uses several kinds of name internally:</span><span>
</span><span id="line-14"></span><span class="hs-comment">--</span><span>
</span><span id="line-15"></span><span class="hs-comment">-- * 'GHC.Types.Name.Occurrence.OccName' represents names as strings with just a little more information:</span><span>
</span><span id="line-16"></span><span class="hs-comment">--   the \&quot;namespace\&quot; that the name came from, e.g. the namespace of value, type constructors or</span><span>
</span><span id="line-17"></span><span class="hs-comment">--   data constructors</span><span>
</span><span id="line-18"></span><span class="hs-comment">--</span><span>
</span><span id="line-19"></span><span class="hs-comment">-- * 'GHC.Types.Name.Reader.RdrName': see &quot;GHC.Types.Name.Reader#name_types&quot;</span><span>
</span><span id="line-20"></span><span class="hs-comment">--</span><span>
</span><span id="line-21"></span><span class="hs-comment">-- * 'GHC.Types.Name.Name': see &quot;GHC.Types.Name#name_types&quot;</span><span>
</span><span id="line-22"></span><span class="hs-comment">--</span><span>
</span><span id="line-23"></span><span class="hs-comment">-- * 'GHC.Types.Id.Id': see &quot;GHC.Types.Id#name_types&quot;</span><span>
</span><span id="line-24"></span><span class="hs-comment">--</span><span>
</span><span id="line-25"></span><span class="hs-comment">-- * 'GHC.Types.Var.Var': see &quot;GHC.Types.Var#name_types&quot;</span><span>
</span><span id="line-26"></span><span>
</span><span id="line-27"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">GHC.Types.Name.Occurrence</span><span> </span><span class="hs-special">(</span><span>
</span><span id="line-28"></span><span>        </span><span class="annot"><span class="hs-comment">-- * The 'NameSpace' type</span></span><span>
</span><span id="line-29"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier">NameSpace</span></a></span><span class="hs-special">,</span><span> </span><span class="hs-comment">-- Abstract</span><span>
</span><span id="line-30"></span><span>
</span><span id="line-31"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#nameSpacesRelated"><span class="hs-identifier">nameSpacesRelated</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-32"></span><span>
</span><span id="line-33"></span><span>        </span><span class="annot"><span class="hs-comment">-- ** Construction</span></span><span>
</span><span id="line-34"></span><span>        </span><span class="annot"><span class="hs-comment">-- $real_vs_source_data_constructors</span></span><span>
</span><span id="line-35"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#tcName"><span class="hs-identifier">tcName</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#clsName"><span class="hs-identifier">clsName</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#tcClsName"><span class="hs-identifier">tcClsName</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#dataName"><span class="hs-identifier">dataName</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier">varName</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-36"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#tvName"><span class="hs-identifier">tvName</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#srcDataName"><span class="hs-identifier">srcDataName</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-37"></span><span>
</span><span id="line-38"></span><span>        </span><span class="annot"><span class="hs-comment">-- ** Pretty Printing</span></span><span>
</span><span id="line-39"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#pprNameSpace"><span class="hs-identifier">pprNameSpace</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#pprNonVarNameSpace"><span class="hs-identifier">pprNonVarNameSpace</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#pprNameSpaceBrief"><span class="hs-identifier">pprNameSpaceBrief</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-40"></span><span>
</span><span id="line-41"></span><span>        </span><span class="annot"><span class="hs-comment">-- * The 'OccName' type</span></span><span>
</span><span id="line-42"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier">OccName</span></a></span><span class="hs-special">,</span><span>        </span><span class="hs-comment">-- Abstract, instance of Outputable</span><span>
</span><span id="line-43"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#pprOccName"><span class="hs-identifier">pprOccName</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-44"></span><span>
</span><span id="line-45"></span><span>        </span><span class="annot"><span class="hs-comment">-- ** Construction</span></span><span>
</span><span id="line-46"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkOccName"><span class="hs-identifier">mkOccName</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkOccNameFS"><span class="hs-identifier">mkOccNameFS</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-47"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkVarOcc"><span class="hs-identifier">mkVarOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkVarOccFS"><span class="hs-identifier">mkVarOccFS</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-48"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkDataOcc"><span class="hs-identifier">mkDataOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkDataOccFS"><span class="hs-identifier">mkDataOccFS</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-49"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkTyVarOcc"><span class="hs-identifier">mkTyVarOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkTyVarOccFS"><span class="hs-identifier">mkTyVarOccFS</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-50"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkTcOcc"><span class="hs-identifier">mkTcOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkTcOccFS"><span class="hs-identifier">mkTcOccFS</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-51"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkClsOcc"><span class="hs-identifier">mkClsOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkClsOccFS"><span class="hs-identifier">mkClsOccFS</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-52"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkDFunOcc"><span class="hs-identifier">mkDFunOcc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-53"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#setOccNameSpace"><span class="hs-identifier">setOccNameSpace</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-54"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#demoteOccName"><span class="hs-identifier">demoteOccName</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-55"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#HasOccName"><span class="hs-identifier">HasOccName</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span>
</span><span id="line-56"></span><span>
</span><span id="line-57"></span><span>        </span><span class="annot"><span class="hs-comment">-- ** Derived 'OccName's</span></span><span>
</span><span id="line-58"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isDerivedOccName"><span class="hs-identifier">isDerivedOccName</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-59"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkDataConWrapperOcc"><span class="hs-identifier">mkDataConWrapperOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkWorkerOcc"><span class="hs-identifier">mkWorkerOcc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-60"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkMatcherOcc"><span class="hs-identifier">mkMatcherOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkBuilderOcc"><span class="hs-identifier">mkBuilderOcc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-61"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkDefaultMethodOcc"><span class="hs-identifier">mkDefaultMethodOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isDefaultMethodOcc"><span class="hs-identifier">isDefaultMethodOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isTypeableBindOcc"><span class="hs-identifier">isTypeableBindOcc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-62"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkNewTyCoOcc"><span class="hs-identifier">mkNewTyCoOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkClassOpAuxOcc"><span class="hs-identifier">mkClassOpAuxOcc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-63"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkCon2TagOcc"><span class="hs-identifier">mkCon2TagOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkTag2ConOcc"><span class="hs-identifier">mkTag2ConOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkMaxTagOcc"><span class="hs-identifier">mkMaxTagOcc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-64"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkClassDataConOcc"><span class="hs-identifier">mkClassDataConOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkDictOcc"><span class="hs-identifier">mkDictOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkIPOcc"><span class="hs-identifier">mkIPOcc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-65"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkSpecOcc"><span class="hs-identifier">mkSpecOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkForeignExportOcc"><span class="hs-identifier">mkForeignExportOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkRepEqOcc"><span class="hs-identifier">mkRepEqOcc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-66"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkGenR"><span class="hs-identifier">mkGenR</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkGen1R"><span class="hs-identifier">mkGen1R</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-67"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkDataTOcc"><span class="hs-identifier">mkDataTOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkDataCOcc"><span class="hs-identifier">mkDataCOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkDataConWorkerOcc"><span class="hs-identifier">mkDataConWorkerOcc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-68"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkSuperDictSelOcc"><span class="hs-identifier">mkSuperDictSelOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkSuperDictAuxOcc"><span class="hs-identifier">mkSuperDictAuxOcc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-69"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkLocalOcc"><span class="hs-identifier">mkLocalOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkMethodOcc"><span class="hs-identifier">mkMethodOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkInstTyTcOcc"><span class="hs-identifier">mkInstTyTcOcc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-70"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkInstTyCoOcc"><span class="hs-identifier">mkInstTyCoOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkEqPredCoOcc"><span class="hs-identifier">mkEqPredCoOcc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-71"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkRecFldSelOcc"><span class="hs-identifier">mkRecFldSelOcc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-72"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkTyConRepOcc"><span class="hs-identifier">mkTyConRepOcc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-73"></span><span>
</span><span id="line-74"></span><span>        </span><span class="annot"><span class="hs-comment">-- ** Deconstruction</span></span><span>
</span><span id="line-75"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#occNameFS"><span class="hs-identifier">occNameFS</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#occNameString"><span class="hs-identifier">occNameString</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#occNameSpace"><span class="hs-identifier">occNameSpace</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-76"></span><span>
</span><span id="line-77"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isVarOcc"><span class="hs-identifier">isVarOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isTvOcc"><span class="hs-identifier">isTvOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isTcOcc"><span class="hs-identifier">isTcOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isDataOcc"><span class="hs-identifier">isDataOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isDataSymOcc"><span class="hs-identifier">isDataSymOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isSymOcc"><span class="hs-identifier">isSymOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isValOcc"><span class="hs-identifier">isValOcc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-78"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#parenSymOcc"><span class="hs-identifier">parenSymOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#startsWithUnderscore"><span class="hs-identifier">startsWithUnderscore</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-79"></span><span>
</span><span id="line-80"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isTcClsNameSpace"><span class="hs-identifier">isTcClsNameSpace</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isTvNameSpace"><span class="hs-identifier">isTvNameSpace</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isDataConNameSpace"><span class="hs-identifier">isDataConNameSpace</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isVarNameSpace"><span class="hs-identifier">isVarNameSpace</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isValNameSpace"><span class="hs-identifier">isValNameSpace</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-81"></span><span>
</span><span id="line-82"></span><span>        </span><span class="annot"><span class="hs-comment">-- * The 'OccEnv' type</span></span><span>
</span><span id="line-83"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier">OccEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#emptyOccEnv"><span class="hs-identifier">emptyOccEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#unitOccEnv"><span class="hs-identifier">unitOccEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#extendOccEnv"><span class="hs-identifier">extendOccEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mapOccEnv"><span class="hs-identifier">mapOccEnv</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-84"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#lookupOccEnv"><span class="hs-identifier">lookupOccEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkOccEnv"><span class="hs-identifier">mkOccEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkOccEnv_C"><span class="hs-identifier">mkOccEnv_C</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#extendOccEnvList"><span class="hs-identifier">extendOccEnvList</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#elemOccEnv"><span class="hs-identifier">elemOccEnv</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-85"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#occEnvElts"><span class="hs-identifier">occEnvElts</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#foldOccEnv"><span class="hs-identifier">foldOccEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#plusOccEnv"><span class="hs-identifier">plusOccEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#plusOccEnv_C"><span class="hs-identifier">plusOccEnv_C</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#extendOccEnv_C"><span class="hs-identifier">extendOccEnv_C</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-86"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#extendOccEnv_Acc"><span class="hs-identifier">extendOccEnv_Acc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#filterOccEnv"><span class="hs-identifier">filterOccEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#delListFromOccEnv"><span class="hs-identifier">delListFromOccEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#delFromOccEnv"><span class="hs-identifier">delFromOccEnv</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-87"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#alterOccEnv"><span class="hs-identifier">alterOccEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#pprOccEnv"><span class="hs-identifier">pprOccEnv</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-88"></span><span>
</span><span id="line-89"></span><span>        </span><span class="annot"><span class="hs-comment">-- * The 'OccSet' type</span></span><span>
</span><span id="line-90"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier">OccSet</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#emptyOccSet"><span class="hs-identifier">emptyOccSet</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#unitOccSet"><span class="hs-identifier">unitOccSet</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkOccSet"><span class="hs-identifier">mkOccSet</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#extendOccSet"><span class="hs-identifier">extendOccSet</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-91"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#extendOccSetList"><span class="hs-identifier">extendOccSetList</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-92"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#unionOccSets"><span class="hs-identifier">unionOccSets</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#unionManyOccSets"><span class="hs-identifier">unionManyOccSets</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#minusOccSet"><span class="hs-identifier">minusOccSet</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#elemOccSet"><span class="hs-identifier">elemOccSet</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-93"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isEmptyOccSet"><span class="hs-identifier">isEmptyOccSet</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#intersectOccSet"><span class="hs-identifier">intersectOccSet</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-94"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#filterOccSet"><span class="hs-identifier">filterOccSet</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-95"></span><span>
</span><span id="line-96"></span><span>        </span><span class="annot"><span class="hs-comment">-- * Tidying up</span></span><span>
</span><span id="line-97"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#TidyOccEnv"><span class="hs-identifier">TidyOccEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#emptyTidyOccEnv"><span class="hs-identifier">emptyTidyOccEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#initTidyOccEnv"><span class="hs-identifier">initTidyOccEnv</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-98"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#tidyOccName"><span class="hs-identifier">tidyOccName</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#avoidClashesOccEnv"><span class="hs-identifier">avoidClashesOccEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#delTidyOccEnvList"><span class="hs-identifier">delTidyOccEnvList</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-99"></span><span>
</span><span id="line-100"></span><span>        </span><span class="hs-comment">-- FsEnv</span><span>
</span><span id="line-101"></span><span>        </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier">FastStringEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#emptyFsEnv"><span class="hs-identifier">emptyFsEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#lookupFsEnv"><span class="hs-identifier">lookupFsEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#extendFsEnv"><span class="hs-identifier">extendFsEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#mkFsEnv"><span class="hs-identifier">mkFsEnv</span></a></span><span>
</span><span id="line-102"></span><span>    </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-103"></span><span>
</span><span id="line-104"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Prelude.html"><span class="hs-identifier">GHC.Prelude</span></a></span><span>
</span><span id="line-105"></span><span>
</span><span id="line-106"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Utils.Misc.html"><span class="hs-identifier">GHC.Utils.Misc</span></a></span><span>
</span><span id="line-107"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Types.Unique.html"><span class="hs-identifier">GHC.Types.Unique</span></a></span><span>
</span><span id="line-108"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Types.Unique.FM.html"><span class="hs-identifier">GHC.Types.Unique.FM</span></a></span><span>
</span><span id="line-109"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Types.Unique.Set.html"><span class="hs-identifier">GHC.Types.Unique.Set</span></a></span><span>
</span><span id="line-110"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html"><span class="hs-identifier">GHC.Data.FastString</span></a></span><span>
</span><span id="line-111"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html"><span class="hs-identifier">GHC.Data.FastString.Env</span></a></span><span>
</span><span id="line-112"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html"><span class="hs-identifier">GHC.Utils.Outputable</span></a></span><span>
</span><span id="line-113"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Utils.Lexeme.html"><span class="hs-identifier">GHC.Utils.Lexeme</span></a></span><span>
</span><span id="line-114"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Utils.Binary.html"><span class="hs-identifier">GHC.Utils.Binary</span></a></span><span>
</span><span id="line-115"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../deepseq/src/Control.DeepSeq.html#"><span class="hs-identifier">Control.DeepSeq</span></a></span><span>
</span><span id="line-116"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.Char.html#"><span class="hs-identifier">Data.Char</span></a></span><span>
</span><span id="line-117"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.Data.html#"><span class="hs-identifier">Data.Data</span></a></span><span>
</span><span id="line-118"></span><span>
</span><span id="line-119"></span><span class="hs-comment">{-
************************************************************************
*                                                                      *
\subsection{Name space}
*                                                                      *
************************************************************************
-}</span><span>
</span><span id="line-126"></span><span>
</span><span id="line-127"></span><span class="hs-keyword">data</span><span> </span><span id="NameSpace"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-var">NameSpace</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="VarName"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#VarName"><span class="hs-identifier hs-var">VarName</span></a></span></span><span>        </span><span class="hs-comment">-- Variables, including &quot;real&quot; data constructors</span><span>
</span><span id="line-128"></span><span>               </span><span class="hs-glyph">|</span><span> </span><span id="DataName"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#DataName"><span class="hs-identifier hs-var">DataName</span></a></span></span><span>       </span><span class="hs-comment">-- &quot;Source&quot; data constructors</span><span>
</span><span id="line-129"></span><span>               </span><span class="hs-glyph">|</span><span> </span><span id="TvName"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#TvName"><span class="hs-identifier hs-var">TvName</span></a></span></span><span>         </span><span class="hs-comment">-- Type variables</span><span>
</span><span id="line-130"></span><span>               </span><span class="hs-glyph">|</span><span> </span><span id="TcClsName"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#TcClsName"><span class="hs-identifier hs-var">TcClsName</span></a></span></span><span>      </span><span class="hs-comment">-- Type constructors and classes; Haskell has them</span><span>
</span><span id="line-131"></span><span>                                </span><span class="hs-comment">-- in the same name space for now.</span><span>
</span><span id="line-132"></span><span>               </span><span class="hs-keyword">deriving</span><span class="hs-special">(</span><span> </span><span id="local-6989586621680804777"><span id="local-6989586621680804779"><span class="annot"><span class="annottext">NameSpace -&gt; NameSpace -&gt; Bool
(NameSpace -&gt; NameSpace -&gt; Bool)
-&gt; (NameSpace -&gt; NameSpace -&gt; Bool) -&gt; Eq NameSpace
forall a. (a -&gt; a -&gt; Bool) -&gt; (a -&gt; a -&gt; Bool) -&gt; Eq a
/= :: NameSpace -&gt; NameSpace -&gt; Bool
$c/= :: NameSpace -&gt; NameSpace -&gt; Bool
== :: NameSpace -&gt; NameSpace -&gt; Bool
$c== :: NameSpace -&gt; NameSpace -&gt; Bool
</span><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var">Eq</span></span></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621680804757"><span id="local-6989586621680804759"><span id="local-6989586621680804762"><span id="local-6989586621680804765"><span id="local-6989586621680804768"><span id="local-6989586621680804770"><span id="local-6989586621680804772"><span class="annot"><span class="annottext">Eq NameSpace
Eq NameSpace
-&gt; (NameSpace -&gt; NameSpace -&gt; Ordering)
-&gt; (NameSpace -&gt; NameSpace -&gt; Bool)
-&gt; (NameSpace -&gt; NameSpace -&gt; Bool)
-&gt; (NameSpace -&gt; NameSpace -&gt; Bool)
-&gt; (NameSpace -&gt; NameSpace -&gt; Bool)
-&gt; (NameSpace -&gt; NameSpace -&gt; NameSpace)
-&gt; (NameSpace -&gt; NameSpace -&gt; NameSpace)
-&gt; Ord NameSpace
NameSpace -&gt; NameSpace -&gt; Bool
NameSpace -&gt; NameSpace -&gt; Ordering
NameSpace -&gt; NameSpace -&gt; NameSpace
forall a.
Eq a
-&gt; (a -&gt; a -&gt; Ordering)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; a)
-&gt; (a -&gt; a -&gt; a)
-&gt; Ord a
min :: NameSpace -&gt; NameSpace -&gt; NameSpace
$cmin :: NameSpace -&gt; NameSpace -&gt; NameSpace
max :: NameSpace -&gt; NameSpace -&gt; NameSpace
$cmax :: NameSpace -&gt; NameSpace -&gt; NameSpace
&gt;= :: NameSpace -&gt; NameSpace -&gt; Bool
$c&gt;= :: NameSpace -&gt; NameSpace -&gt; Bool
&gt; :: NameSpace -&gt; NameSpace -&gt; Bool
$c&gt; :: NameSpace -&gt; NameSpace -&gt; Bool
&lt;= :: NameSpace -&gt; NameSpace -&gt; Bool
$c&lt;= :: NameSpace -&gt; NameSpace -&gt; Bool
&lt; :: NameSpace -&gt; NameSpace -&gt; Bool
$c&lt; :: NameSpace -&gt; NameSpace -&gt; Bool
compare :: NameSpace -&gt; NameSpace -&gt; Ordering
$ccompare :: NameSpace -&gt; NameSpace -&gt; Ordering
</span><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Ord</span></span></span></span></span></span></span></span></span><span> </span><span class="hs-special">)</span><span>
</span><span id="line-133"></span><span>
</span><span id="line-134"></span><span class="hs-comment">-- Note [Data Constructors]</span><span>
</span><span id="line-135"></span><span class="hs-comment">-- see also: Note [Data Constructor Naming] in GHC.Core.DataCon</span><span>
</span><span id="line-136"></span><span class="hs-comment">--</span><span>
</span><span id="line-137"></span><span class="hs-comment">-- $real_vs_source_data_constructors</span><span>
</span><span id="line-138"></span><span class="hs-comment">-- There are two forms of data constructor:</span><span>
</span><span id="line-139"></span><span class="hs-comment">--</span><span>
</span><span id="line-140"></span><span class="hs-comment">--      [Source data constructors] The data constructors mentioned in Haskell source code</span><span>
</span><span id="line-141"></span><span class="hs-comment">--</span><span>
</span><span id="line-142"></span><span class="hs-comment">--      [Real data constructors] The data constructors of the representation type, which may not be the same as the source type</span><span>
</span><span id="line-143"></span><span class="hs-comment">--</span><span>
</span><span id="line-144"></span><span class="hs-comment">-- For example:</span><span>
</span><span id="line-145"></span><span class="hs-comment">--</span><span>
</span><span id="line-146"></span><span class="hs-comment">-- &gt; data T = T !(Int, Int)</span><span>
</span><span id="line-147"></span><span class="hs-comment">--</span><span>
</span><span id="line-148"></span><span class="hs-comment">-- The source datacon has type @(Int, Int) -&gt; T@</span><span>
</span><span id="line-149"></span><span class="hs-comment">-- The real   datacon has type @Int -&gt; Int -&gt; T@</span><span>
</span><span id="line-150"></span><span class="hs-comment">--</span><span>
</span><span id="line-151"></span><span class="hs-comment">-- GHC chooses a representation based on the strictness etc.</span><span>
</span><span id="line-152"></span><span>
</span><span id="line-153"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#tcName"><span class="hs-identifier hs-type">tcName</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#clsName"><span class="hs-identifier hs-type">clsName</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#tcClsName"><span class="hs-identifier hs-type">tcClsName</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span><span>
</span><span id="line-154"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#dataName"><span class="hs-identifier hs-type">dataName</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#srcDataName"><span class="hs-identifier hs-type">srcDataName</span></a></span><span>      </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span><span>
</span><span id="line-155"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#tvName"><span class="hs-identifier hs-type">tvName</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-type">varName</span></a></span><span>            </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span><span>
</span><span id="line-156"></span><span>
</span><span id="line-157"></span><span class="hs-comment">-- Though type constructors and classes are in the same name space now,</span><span>
</span><span id="line-158"></span><span class="hs-comment">-- the NameSpace type is abstract, so we can easily separate them later</span><span>
</span><span id="line-159"></span><span id="tcName"><span class="annot"><span class="annottext">tcName :: NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#tcName"><span class="hs-identifier hs-var hs-var">tcName</span></a></span></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TcClsName"><span class="hs-identifier hs-var">TcClsName</span></a></span><span>           </span><span class="hs-comment">-- Type constructors</span><span>
</span><span id="line-160"></span><span id="clsName"><span class="annot"><span class="annottext">clsName :: NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#clsName"><span class="hs-identifier hs-var hs-var">clsName</span></a></span></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TcClsName"><span class="hs-identifier hs-var">TcClsName</span></a></span><span>           </span><span class="hs-comment">-- Classes</span><span>
</span><span id="line-161"></span><span id="tcClsName"><span class="annot"><span class="annottext">tcClsName :: NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#tcClsName"><span class="hs-identifier hs-var hs-var">tcClsName</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TcClsName"><span class="hs-identifier hs-var">TcClsName</span></a></span><span>           </span><span class="hs-comment">-- Not sure which!</span><span>
</span><span id="line-162"></span><span>
</span><span id="line-163"></span><span id="dataName"><span class="annot"><span class="annottext">dataName :: NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#dataName"><span class="hs-identifier hs-var hs-var">dataName</span></a></span></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#DataName"><span class="hs-identifier hs-var">DataName</span></a></span><span>
</span><span id="line-164"></span><span id="srcDataName"><span class="annot"><span class="annottext">srcDataName :: NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#srcDataName"><span class="hs-identifier hs-var hs-var">srcDataName</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#DataName"><span class="hs-identifier hs-var">DataName</span></a></span><span>  </span><span class="hs-comment">-- Haskell-source data constructors should be</span><span>
</span><span id="line-165"></span><span>                        </span><span class="hs-comment">-- in the Data name space</span><span>
</span><span id="line-166"></span><span>
</span><span id="line-167"></span><span id="tvName"><span class="annot"><span class="annottext">tvName :: NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#tvName"><span class="hs-identifier hs-var hs-var">tvName</span></a></span></span><span>      </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TvName"><span class="hs-identifier hs-var">TvName</span></a></span><span>
</span><span id="line-168"></span><span id="varName"><span class="annot"><span class="annottext">varName :: NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var hs-var">varName</span></a></span></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#VarName"><span class="hs-identifier hs-var">VarName</span></a></span><span>
</span><span id="line-169"></span><span>
</span><span id="line-170"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isDataConNameSpace"><span class="hs-identifier hs-type">isDataConNameSpace</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-171"></span><span id="isDataConNameSpace"><span class="annot"><span class="annottext">isDataConNameSpace :: NameSpace -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#isDataConNameSpace"><span class="hs-identifier hs-var hs-var">isDataConNameSpace</span></a></span></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#DataName"><span class="hs-identifier hs-var">DataName</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>
</span><span id="line-172"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isDataConNameSpace"><span class="hs-identifier hs-var">isDataConNameSpace</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><span class="hs-identifier">_</span></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span>
</span><span id="line-173"></span><span>
</span><span id="line-174"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isTcClsNameSpace"><span class="hs-identifier hs-type">isTcClsNameSpace</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-175"></span><span id="isTcClsNameSpace"><span class="annot"><span class="annottext">isTcClsNameSpace :: NameSpace -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#isTcClsNameSpace"><span class="hs-identifier hs-var hs-var">isTcClsNameSpace</span></a></span></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TcClsName"><span class="hs-identifier hs-var">TcClsName</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>
</span><span id="line-176"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isTcClsNameSpace"><span class="hs-identifier hs-var">isTcClsNameSpace</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><span class="hs-identifier">_</span></span><span>         </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span>
</span><span id="line-177"></span><span>
</span><span id="line-178"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isTvNameSpace"><span class="hs-identifier hs-type">isTvNameSpace</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-179"></span><span id="isTvNameSpace"><span class="annot"><span class="annottext">isTvNameSpace :: NameSpace -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#isTvNameSpace"><span class="hs-identifier hs-var hs-var">isTvNameSpace</span></a></span></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TvName"><span class="hs-identifier hs-var">TvName</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>
</span><span id="line-180"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isTvNameSpace"><span class="hs-identifier hs-var">isTvNameSpace</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><span class="hs-identifier">_</span></span><span>      </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span>
</span><span id="line-181"></span><span>
</span><span id="line-182"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isVarNameSpace"><span class="hs-identifier hs-type">isVarNameSpace</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>     </span><span class="hs-comment">-- Variables or type variables, but not constructors</span><span>
</span><span id="line-183"></span><span id="isVarNameSpace"><span class="annot"><span class="annottext">isVarNameSpace :: NameSpace -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#isVarNameSpace"><span class="hs-identifier hs-var hs-var">isVarNameSpace</span></a></span></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TvName"><span class="hs-identifier hs-var">TvName</span></a></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>
</span><span id="line-184"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isVarNameSpace"><span class="hs-identifier hs-var">isVarNameSpace</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#VarName"><span class="hs-identifier hs-var">VarName</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>
</span><span id="line-185"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isVarNameSpace"><span class="hs-identifier hs-var">isVarNameSpace</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><span class="hs-identifier">_</span></span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span>
</span><span id="line-186"></span><span>
</span><span id="line-187"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isValNameSpace"><span class="hs-identifier hs-type">isValNameSpace</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-188"></span><span id="isValNameSpace"><span class="annot"><span class="annottext">isValNameSpace :: NameSpace -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#isValNameSpace"><span class="hs-identifier hs-var hs-var">isValNameSpace</span></a></span></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#DataName"><span class="hs-identifier hs-var">DataName</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>
</span><span id="line-189"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isValNameSpace"><span class="hs-identifier hs-var">isValNameSpace</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#VarName"><span class="hs-identifier hs-var">VarName</span></a></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>
</span><span id="line-190"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isValNameSpace"><span class="hs-identifier hs-var">isValNameSpace</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><span class="hs-identifier">_</span></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span>
</span><span id="line-191"></span><span>
</span><span id="line-192"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#pprNameSpace"><span class="hs-identifier hs-type">pprNameSpace</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html#SDoc"><span class="hs-identifier hs-type">SDoc</span></a></span><span>
</span><span id="line-193"></span><span id="pprNameSpace"><span class="annot"><span class="annottext">pprNameSpace :: NameSpace -&gt; SDoc
</span><a href="GHC.Types.Name.Occurrence.html#pprNameSpace"><span class="hs-identifier hs-var hs-var">pprNameSpace</span></a></span></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#DataName"><span class="hs-identifier hs-var">DataName</span></a></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;data constructor&quot;</span></span><span>
</span><span id="line-194"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#pprNameSpace"><span class="hs-identifier hs-var">pprNameSpace</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#VarName"><span class="hs-identifier hs-var">VarName</span></a></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;variable&quot;</span></span><span>
</span><span id="line-195"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#pprNameSpace"><span class="hs-identifier hs-var">pprNameSpace</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TvName"><span class="hs-identifier hs-var">TvName</span></a></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;type variable&quot;</span></span><span>
</span><span id="line-196"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#pprNameSpace"><span class="hs-identifier hs-var">pprNameSpace</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TcClsName"><span class="hs-identifier hs-var">TcClsName</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;type constructor or class&quot;</span></span><span>
</span><span id="line-197"></span><span>
</span><span id="line-198"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#pprNonVarNameSpace"><span class="hs-identifier hs-type">pprNonVarNameSpace</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html#SDoc"><span class="hs-identifier hs-type">SDoc</span></a></span><span>
</span><span id="line-199"></span><span id="pprNonVarNameSpace"><span class="annot"><span class="annottext">pprNonVarNameSpace :: NameSpace -&gt; SDoc
</span><a href="GHC.Types.Name.Occurrence.html#pprNonVarNameSpace"><span class="hs-identifier hs-var hs-var">pprNonVarNameSpace</span></a></span></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#VarName"><span class="hs-identifier hs-var">VarName</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">SDoc
</span><a href="GHC.Utils.Outputable.html#empty"><span class="hs-identifier hs-var">empty</span></a></span><span>
</span><span id="line-200"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#pprNonVarNameSpace"><span class="hs-identifier hs-var">pprNonVarNameSpace</span></a></span><span> </span><span id="local-6989586621680804753"><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804753"><span class="hs-identifier hs-var">ns</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; SDoc
</span><a href="GHC.Types.Name.Occurrence.html#pprNameSpace"><span class="hs-identifier hs-var">pprNameSpace</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804753"><span class="hs-identifier hs-var">ns</span></a></span><span>
</span><span id="line-201"></span><span>
</span><span id="line-202"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#pprNameSpaceBrief"><span class="hs-identifier hs-type">pprNameSpaceBrief</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html#SDoc"><span class="hs-identifier hs-type">SDoc</span></a></span><span>
</span><span id="line-203"></span><span id="pprNameSpaceBrief"><span class="annot"><span class="annottext">pprNameSpaceBrief :: NameSpace -&gt; SDoc
</span><a href="GHC.Types.Name.Occurrence.html#pprNameSpaceBrief"><span class="hs-identifier hs-var hs-var">pprNameSpaceBrief</span></a></span></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#DataName"><span class="hs-identifier hs-var">DataName</span></a></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Char -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#char"><span class="hs-identifier hs-var">char</span></a></span><span> </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'d'</span></span><span>
</span><span id="line-204"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#pprNameSpaceBrief"><span class="hs-identifier hs-var">pprNameSpaceBrief</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#VarName"><span class="hs-identifier hs-var">VarName</span></a></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Char -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#char"><span class="hs-identifier hs-var">char</span></a></span><span> </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'v'</span></span><span>
</span><span id="line-205"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#pprNameSpaceBrief"><span class="hs-identifier hs-var">pprNameSpaceBrief</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TvName"><span class="hs-identifier hs-var">TvName</span></a></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;tv&quot;</span></span><span>
</span><span id="line-206"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#pprNameSpaceBrief"><span class="hs-identifier hs-var">pprNameSpaceBrief</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TcClsName"><span class="hs-identifier hs-var">TcClsName</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;tc&quot;</span></span><span>
</span><span id="line-207"></span><span>
</span><span id="line-208"></span><span class="hs-comment">-- demoteNameSpace lowers the NameSpace if possible.  We can not know</span><span>
</span><span id="line-209"></span><span class="hs-comment">-- in advance, since a TvName can appear in an HsTyVar.</span><span>
</span><span id="line-210"></span><span class="hs-comment">-- See Note [Demotion] in GHC.Rename.Env</span><span>
</span><span id="line-211"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#demoteNameSpace"><span class="hs-identifier hs-type">demoteNameSpace</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span><span>
</span><span id="line-212"></span><span id="demoteNameSpace"><span class="annot"><span class="annottext">demoteNameSpace :: NameSpace -&gt; Maybe NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#demoteNameSpace"><span class="hs-identifier hs-var hs-var">demoteNameSpace</span></a></span></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#VarName"><span class="hs-identifier hs-var">VarName</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Maybe NameSpace
forall a. Maybe a
</span><a href="../../base/src/GHC.Maybe.html#Nothing"><span class="hs-identifier hs-var">Nothing</span></a></span><span>
</span><span id="line-213"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#demoteNameSpace"><span class="hs-identifier hs-var">demoteNameSpace</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#DataName"><span class="hs-identifier hs-var">DataName</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Maybe NameSpace
forall a. Maybe a
</span><a href="../../base/src/GHC.Maybe.html#Nothing"><span class="hs-identifier hs-var">Nothing</span></a></span><span>
</span><span id="line-214"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#demoteNameSpace"><span class="hs-identifier hs-var">demoteNameSpace</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TvName"><span class="hs-identifier hs-var">TvName</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Maybe NameSpace
forall a. Maybe a
</span><a href="../../base/src/GHC.Maybe.html#Nothing"><span class="hs-identifier hs-var">Nothing</span></a></span><span>
</span><span id="line-215"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#demoteNameSpace"><span class="hs-identifier hs-var">demoteNameSpace</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TcClsName"><span class="hs-identifier hs-var">TcClsName</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; Maybe NameSpace
forall a. a -&gt; Maybe a
</span><a href="../../base/src/GHC.Maybe.html#Just"><span class="hs-identifier hs-var">Just</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#DataName"><span class="hs-identifier hs-var">DataName</span></a></span><span>
</span><span id="line-216"></span><span>
</span><span id="line-217"></span><span class="hs-comment">{-
************************************************************************
*                                                                      *
\subsection[Name-pieces-datatypes]{The @OccName@ datatypes}
*                                                                      *
************************************************************************
-}</span><span>
</span><span id="line-224"></span><span>
</span><span id="line-225"></span><span class="hs-comment">-- | Occurrence Name</span><span>
</span><span id="line-226"></span><span class="hs-comment">--</span><span>
</span><span id="line-227"></span><span class="hs-comment">-- In this context that means:</span><span>
</span><span id="line-228"></span><span class="hs-comment">-- &quot;classified (i.e. as a type name, value name, etc) but not qualified</span><span>
</span><span id="line-229"></span><span class="hs-comment">-- and not yet resolved&quot;</span><span>
</span><span id="line-230"></span><span class="hs-keyword">data</span><span> </span><span id="OccName"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-var">OccName</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="OccName"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-var">OccName</span></a></span></span><span>
</span><span id="line-231"></span><span>    </span><span class="hs-special">{</span><span> </span><span id="occNameSpace"><span class="annot"><span class="annottext">OccName -&gt; NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#occNameSpace"><span class="hs-identifier hs-var hs-var">occNameSpace</span></a></span></span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="hs-glyph">!</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span><span>
</span><span id="line-232"></span><span>    </span><span class="hs-special">,</span><span> </span><span id="occNameFS"><span class="annot"><span class="annottext">OccName -&gt; FastString
</span><a href="GHC.Types.Name.Occurrence.html#occNameFS"><span class="hs-identifier hs-var hs-var">occNameFS</span></a></span></span><span>     </span><span class="hs-glyph">::</span><span> </span><span class="hs-glyph">!</span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span>
</span><span id="line-233"></span><span>    </span><span class="hs-special">}</span><span>
</span><span id="line-234"></span><span>
</span><span id="line-235"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621680804747"><span class="annot"><span class="hs-identifier hs-type">Eq</span></span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-236"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span id="local-6989586621680804743"><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804743"><span class="hs-identifier hs-var">sp1</span></a></span></span><span> </span><span id="local-6989586621680804742"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804742"><span class="hs-identifier hs-var">s1</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621680804741"><span class="annot"><span class="annottext">== :: OccName -&gt; OccName -&gt; Bool
</span><span class="hs-operator hs-var hs-var hs-var hs-var">==</span></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span id="local-6989586621680804740"><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804740"><span class="hs-identifier hs-var">sp2</span></a></span></span><span> </span><span id="local-6989586621680804739"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804739"><span class="hs-identifier hs-var">s2</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804742"><span class="hs-identifier hs-var">s1</span></a></span><span> </span><span class="annot"><span class="annottext">FastString -&gt; FastString -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">==</span></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804739"><span class="hs-identifier hs-var">s2</span></a></span><span> </span><span class="annot"><span class="annottext">Bool -&gt; Bool -&gt; Bool
</span><span class="hs-operator hs-var">&amp;&amp;</span></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804743"><span class="hs-identifier hs-var">sp1</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; NameSpace -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">==</span></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804740"><span class="hs-identifier hs-var">sp2</span></a></span><span>
</span><span id="line-237"></span><span>
</span><span id="line-238"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621680804723"><span id="local-6989586621680804725"><span id="local-6989586621680804727"><span id="local-6989586621680804729"><span id="local-6989586621680804731"><span id="local-6989586621680804733"><span class="annot"><span class="hs-identifier hs-type">Ord</span></span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span></span></span></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-239"></span><span>        </span><span class="hs-comment">-- Compares lexicographically, *not* by Unique of the string</span><span>
</span><span id="line-240"></span><span>    </span><span id="local-6989586621680804719"><span class="annot"><span class="annottext">compare :: OccName -&gt; OccName -&gt; Ordering
</span><span class="hs-identifier hs-var hs-var hs-var hs-var">compare</span></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span id="local-6989586621680804717"><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804717"><span class="hs-identifier hs-var">sp1</span></a></span></span><span> </span><span id="local-6989586621680804716"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804716"><span class="hs-identifier hs-var">s1</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span id="local-6989586621680804715"><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804715"><span class="hs-identifier hs-var">sp2</span></a></span></span><span> </span><span id="local-6989586621680804714"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804714"><span class="hs-identifier hs-var">s2</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-241"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804716"><span class="hs-identifier hs-var">s1</span></a></span><span>  </span><span class="annot"><span class="annottext">FastString -&gt; FastString -&gt; Ordering
forall a. Ord a =&gt; a -&gt; a -&gt; Ordering
</span><span class="hs-operator hs-var">`compare`</span></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804714"><span class="hs-identifier hs-var">s2</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Ordering -&gt; Ordering -&gt; Ordering
</span><a href="GHC.Utils.Misc.html#thenCmp"><span class="hs-operator hs-var">`thenCmp`</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804717"><span class="hs-identifier hs-var">sp1</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; NameSpace -&gt; Ordering
forall a. Ord a =&gt; a -&gt; a -&gt; Ordering
</span><span class="hs-operator hs-var">`compare`</span></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804715"><span class="hs-identifier hs-var">sp2</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-242"></span><span>
</span><span id="line-243"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621680804686"><span id="local-6989586621680804688"><span id="local-6989586621680804690"><span id="local-6989586621680804692"><span id="local-6989586621680804694"><span id="local-6989586621680804696"><span id="local-6989586621680804698"><span id="local-6989586621680804700"><span id="local-6989586621680804702"><span id="local-6989586621680804704"><span id="local-6989586621680804709"><span class="annot"><a href="../../base/src/Data.Data.html#Data"><span class="hs-identifier hs-type">Data</span></a></span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span></span></span></span></span></span></span></span></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-244"></span><span>  </span><span class="hs-comment">-- don't traverse?</span><span>
</span><span id="line-245"></span><span>  </span><span id="local-6989586621680804684"><span class="annot"><span class="annottext">toConstr :: OccName -&gt; Constr
</span><a href="../../base/src/Data.Data.html#toConstr"><span class="hs-identifier hs-var hs-var hs-var hs-var">toConstr</span></a></span></span><span> </span><span class="annot"><span class="annottext">OccName
</span><span class="hs-identifier">_</span></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; Constr
</span><a href="GHC.Utils.Misc.html#abstractConstr"><span class="hs-identifier hs-var">abstractConstr</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;OccName&quot;</span></span><span>
</span><span id="line-246"></span><span>  </span><span id="local-6989586621680804679"><span class="annot"><span class="annottext">gunfold :: forall (c :: * -&gt; *).
(forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
-&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c OccName
</span><a href="../../base/src/Data.Data.html#gunfold"><span class="hs-identifier hs-var hs-var hs-var hs-var">gunfold</span></a></span></span><span> </span><span class="annot"><span class="annottext">forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r
</span><span class="hs-identifier">_</span></span><span> </span><span class="annot"><span class="annottext">forall r. r -&gt; c r
</span><span class="hs-identifier">_</span></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; Constr -&gt; c OccName
forall a. HasCallStack =&gt; String -&gt; a
</span><a href="../../base/src/GHC.Err.html#error"><span class="hs-identifier hs-var">error</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;gunfold&quot;</span></span><span>
</span><span id="line-247"></span><span>  </span><span id="local-6989586621680804676"><span class="annot"><span class="annottext">dataTypeOf :: OccName -&gt; DataType
</span><a href="../../base/src/Data.Data.html#dataTypeOf"><span class="hs-identifier hs-var hs-var hs-var hs-var">dataTypeOf</span></a></span></span><span> </span><span class="annot"><span class="annottext">OccName
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; DataType
</span><a href="../../base/src/Data.Data.html#mkNoRepType"><span class="hs-identifier hs-var">mkNoRepType</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;OccName&quot;</span></span><span>
</span><span id="line-248"></span><span>
</span><span id="line-249"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#HasOccName"><span class="hs-identifier hs-type">HasOccName</span></a></span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-250"></span><span>  </span><span id="local-6989586621680804670"><span class="annot"><span class="annottext">occName :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#occName"><span class="hs-identifier hs-var hs-var hs-var hs-var">occName</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">OccName -&gt; OccName
forall a. a -&gt; a
</span><a href="../../base/src/GHC.Base.html#id"><span class="hs-identifier hs-var">id</span></a></span><span>
</span><span id="line-251"></span><span>
</span><span id="line-252"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="../../deepseq/src/Control.DeepSeq.html#NFData"><span class="hs-identifier hs-type">NFData</span></a></span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-253"></span><span>  </span><span id="local-6989586621680804664"><span class="annot"><span class="annottext">rnf :: OccName -&gt; ()
</span><a href="../../deepseq/src/Control.DeepSeq.html#rnf"><span class="hs-identifier hs-var hs-var hs-var hs-var">rnf</span></a></span></span><span> </span><span id="local-6989586621680804662"><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804662"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804662"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">OccName -&gt; () -&gt; ()
</span><span class="hs-operator hs-var">`seq`</span></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-254"></span><span>
</span><span id="line-255"></span><span class="hs-comment">{-
************************************************************************
*                                                                      *
\subsection{Printing}
*                                                                      *
************************************************************************
-}</span><span>
</span><span id="line-262"></span><span>
</span><span id="line-263"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621680804659"><span class="annot"><a href="GHC.Utils.Outputable.html#Outputable"><span class="hs-identifier hs-type">Outputable</span></a></span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-264"></span><span>    </span><span id="local-6989586621680804657"><span class="annot"><span class="annottext">ppr :: OccName -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var hs-var hs-var hs-var">ppr</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">OccName -&gt; SDoc
</span><a href="GHC.Types.Name.Occurrence.html#pprOccName"><span class="hs-identifier hs-var">pprOccName</span></a></span><span>
</span><span id="line-265"></span><span>
</span><span id="line-266"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621680804649"><span class="annot"><a href="GHC.Utils.Outputable.html#OutputableBndr"><span class="hs-identifier hs-type">OutputableBndr</span></a></span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-267"></span><span>    </span><span id="local-6989586621680804646"><span class="annot"><span class="annottext">pprBndr :: BindingSite -&gt; OccName -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#pprBndr"><span class="hs-identifier hs-var hs-var hs-var hs-var">pprBndr</span></a></span></span><span> </span><span class="annot"><span class="annottext">BindingSite
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">OccName -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span>
</span><span id="line-268"></span><span>    </span><span id="local-6989586621680804643"><span class="annot"><span class="annottext">pprInfixOcc :: OccName -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#pprInfixOcc"><span class="hs-identifier hs-var hs-var hs-var hs-var">pprInfixOcc</span></a></span></span><span> </span><span id="local-6989586621680804641"><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804641"><span class="hs-identifier hs-var">n</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#pprInfixVar"><span class="hs-identifier hs-var">pprInfixVar</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">OccName -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#isSymOcc"><span class="hs-identifier hs-var">isSymOcc</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804641"><span class="hs-identifier hs-var">n</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">OccName -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804641"><span class="hs-identifier hs-var">n</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-269"></span><span>    </span><span id="local-6989586621680804638"><span class="annot"><span class="annottext">pprPrefixOcc :: OccName -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#pprPrefixOcc"><span class="hs-identifier hs-var hs-var hs-var hs-var">pprPrefixOcc</span></a></span></span><span> </span><span id="local-6989586621680804636"><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804636"><span class="hs-identifier hs-var">n</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#pprPrefixVar"><span class="hs-identifier hs-var">pprPrefixVar</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">OccName -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#isSymOcc"><span class="hs-identifier hs-var">isSymOcc</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804636"><span class="hs-identifier hs-var">n</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">OccName -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804636"><span class="hs-identifier hs-var">n</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-270"></span><span>
</span><span id="line-271"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#pprOccName"><span class="hs-identifier hs-type">pprOccName</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html#SDoc"><span class="hs-identifier hs-type">SDoc</span></a></span><span>
</span><span id="line-272"></span><span id="pprOccName"><span class="annot"><span class="annottext">pprOccName :: OccName -&gt; SDoc
</span><a href="GHC.Types.Name.Occurrence.html#pprOccName"><span class="hs-identifier hs-var hs-var">pprOccName</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span id="local-6989586621680804634"><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804634"><span class="hs-identifier hs-var">sp</span></a></span></span><span> </span><span id="local-6989586621680804633"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804633"><span class="hs-identifier hs-var">occ</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-273"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(PprStyle -&gt; SDoc) -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#getPprStyle"><span class="hs-identifier hs-var">getPprStyle</span></a></span><span> </span><span class="annot"><span class="annottext">((PprStyle -&gt; SDoc) -&gt; SDoc) -&gt; (PprStyle -&gt; SDoc) -&gt; SDoc
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-glyph">\</span><span> </span><span id="local-6989586621680804631"><span class="annot"><span class="annottext">PprStyle
</span><a href="#local-6989586621680804631"><span class="hs-identifier hs-var">sty</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-274"></span><span>    </span><span class="hs-keyword">if</span><span> </span><span class="annot"><span class="annottext">PprStyle -&gt; Bool
</span><a href="GHC.Utils.Outputable.html#codeStyle"><span class="hs-identifier hs-var">codeStyle</span></a></span><span> </span><span class="annot"><span class="annottext">PprStyle
</span><a href="#local-6989586621680804631"><span class="hs-identifier hs-var">sty</span></a></span><span>
</span><span id="line-275"></span><span>    </span><span class="hs-keyword">then</span><span> </span><span class="annot"><span class="annottext">FastZString -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ztext"><span class="hs-identifier hs-var">ztext</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">FastString -&gt; FastZString
</span><a href="GHC.Data.FastString.html#zEncodeFS"><span class="hs-identifier hs-var">zEncodeFS</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804633"><span class="hs-identifier hs-var">occ</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-276"></span><span>    </span><span class="hs-keyword">else</span><span> </span><span class="annot"><span class="annottext">SDoc
</span><a href="#local-6989586621680804627"><span class="hs-identifier hs-var">pp_occ</span></a></span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#%3C%3E"><span class="hs-operator hs-var">&lt;&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#whenPprDebug"><span class="hs-identifier hs-var">whenPprDebug</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#braces"><span class="hs-identifier hs-var">braces</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">NameSpace -&gt; SDoc
</span><a href="GHC.Types.Name.Occurrence.html#pprNameSpaceBrief"><span class="hs-identifier hs-var">pprNameSpaceBrief</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804634"><span class="hs-identifier hs-var">sp</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-277"></span><span>  </span><span class="hs-keyword">where</span><span>
</span><span id="line-278"></span><span>    </span><span id="local-6989586621680804627"><span class="annot"><span class="annottext">pp_occ :: SDoc
</span><a href="#local-6989586621680804627"><span class="hs-identifier hs-var hs-var">pp_occ</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(SDocContext -&gt; Bool) -&gt; (Bool -&gt; SDoc) -&gt; SDoc
forall a. (SDocContext -&gt; a) -&gt; (a -&gt; SDoc) -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#sdocOption"><span class="hs-identifier hs-var">sdocOption</span></a></span><span> </span><span class="annot"><span class="annottext">SDocContext -&gt; Bool
</span><a href="GHC.Utils.Outputable.html#sdocSuppressUniques"><span class="hs-identifier hs-var hs-var">sdocSuppressUniques</span></a></span><span> </span><span class="annot"><span class="annottext">((Bool -&gt; SDoc) -&gt; SDoc) -&gt; (Bool -&gt; SDoc) -&gt; SDoc
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-glyph">\</span><span class="hs-glyph">case</span><span>
</span><span id="line-279"></span><span>               </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">String -&gt; String
</span><a href="#local-6989586621680804621"><span class="hs-identifier hs-var">strip_th_unique</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">FastString -&gt; String
</span><a href="GHC.Data.FastString.html#unpackFS"><span class="hs-identifier hs-var">unpackFS</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804633"><span class="hs-identifier hs-var">occ</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-280"></span><span>               </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">FastString -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ftext"><span class="hs-identifier hs-var">ftext</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804633"><span class="hs-identifier hs-var">occ</span></a></span><span>
</span><span id="line-281"></span><span>
</span><span id="line-282"></span><span>        </span><span class="hs-comment">-- See Note [Suppressing uniques in OccNames]</span><span>
</span><span id="line-283"></span><span>    </span><span id="local-6989586621680804621"><span class="annot"><span class="annottext">strip_th_unique :: String -&gt; String
</span><a href="#local-6989586621680804621"><span class="hs-identifier hs-var hs-var">strip_th_unique</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'['</span></span><span> </span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span> </span><span id="local-6989586621680804618"><span class="annot"><span class="annottext">Char
</span><a href="#local-6989586621680804618"><span class="hs-identifier hs-var">c</span></a></span></span><span> </span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Char -&gt; Bool
</span><a href="../../base/src/GHC.Unicode.html#isAlphaNum"><span class="hs-identifier hs-var">isAlphaNum</span></a></span><span> </span><span class="annot"><span class="annottext">Char
</span><a href="#local-6989586621680804618"><span class="hs-identifier hs-var">c</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>
</span><span id="line-284"></span><span>    </span><span class="annot"><a href="#local-6989586621680804621"><span class="hs-identifier hs-var">strip_th_unique</span></a></span><span> </span><span class="hs-special">(</span><span id="local-6989586621680804616"><span class="annot"><span class="annottext">Char
</span><a href="#local-6989586621680804616"><span class="hs-identifier hs-var">c</span></a></span></span><span> </span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span> </span><span id="local-6989586621680804615"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680804615"><span class="hs-identifier hs-var">cs</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Char
</span><a href="#local-6989586621680804616"><span class="hs-identifier hs-var">c</span></a></span><span> </span><span class="annot"><span class="annottext">Char -&gt; String -&gt; String
forall a. a -&gt; [a] -&gt; [a]
</span><span class="hs-glyph hs-var">:</span></span><span> </span><span class="annot"><span class="annottext">String -&gt; String
</span><a href="#local-6989586621680804621"><span class="hs-identifier hs-var">strip_th_unique</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680804615"><span class="hs-identifier hs-var">cs</span></a></span><span>
</span><span id="line-285"></span><span>    </span><span class="annot"><a href="#local-6989586621680804621"><span class="hs-identifier hs-var">strip_th_unique</span></a></span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>
</span><span id="line-286"></span><span>
</span><span id="line-287"></span><span class="hs-comment">{-
Note [Suppressing uniques in OccNames]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This is a hack to de-wobblify the OccNames that contain uniques from
Template Haskell that have been turned into a string in the OccName.
See Note [Unique OccNames from Template Haskell] in &quot;GHC.ThToHs&quot;

************************************************************************
*                                                                      *
\subsection{Construction}
*                                                                      *
************************************************************************
-}</span><span>
</span><span id="line-300"></span><span>
</span><span id="line-301"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkOccName"><span class="hs-identifier hs-type">mkOccName</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>
</span><span id="line-302"></span><span id="mkOccName"><span class="annot"><span class="annottext">mkOccName :: NameSpace -&gt; String -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkOccName"><span class="hs-identifier hs-var hs-var">mkOccName</span></a></span></span><span> </span><span id="local-6989586621680804614"><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804614"><span class="hs-identifier hs-var">occ_sp</span></a></span></span><span> </span><span id="local-6989586621680804613"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680804613"><span class="hs-identifier hs-var">str</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-var">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804614"><span class="hs-identifier hs-var">occ_sp</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">String -&gt; FastString
</span><a href="GHC.Data.FastString.html#mkFastString"><span class="hs-identifier hs-var">mkFastString</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680804613"><span class="hs-identifier hs-var">str</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-303"></span><span>
</span><span id="line-304"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkOccNameFS"><span class="hs-identifier hs-type">mkOccNameFS</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>
</span><span id="line-305"></span><span id="mkOccNameFS"><span class="annot"><span class="annottext">mkOccNameFS :: NameSpace -&gt; FastString -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkOccNameFS"><span class="hs-identifier hs-var hs-var">mkOccNameFS</span></a></span></span><span> </span><span id="local-6989586621680804611"><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804611"><span class="hs-identifier hs-var">occ_sp</span></a></span></span><span> </span><span id="local-6989586621680804610"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804610"><span class="hs-identifier hs-var">fs</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-var">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804611"><span class="hs-identifier hs-var">occ_sp</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804610"><span class="hs-identifier hs-var">fs</span></a></span><span>
</span><span id="line-306"></span><span>
</span><span id="line-307"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkVarOcc"><span class="hs-identifier hs-type">mkVarOcc</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>
</span><span id="line-308"></span><span id="mkVarOcc"><span class="annot"><span class="annottext">mkVarOcc :: String -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkVarOcc"><span class="hs-identifier hs-var hs-var">mkVarOcc</span></a></span></span><span> </span><span id="local-6989586621680804609"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680804609"><span class="hs-identifier hs-var">s</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; String -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkOccName"><span class="hs-identifier hs-var">mkOccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var">varName</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680804609"><span class="hs-identifier hs-var">s</span></a></span><span>
</span><span id="line-309"></span><span>
</span><span id="line-310"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkVarOccFS"><span class="hs-identifier hs-type">mkVarOccFS</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>
</span><span id="line-311"></span><span id="mkVarOccFS"><span class="annot"><span class="annottext">mkVarOccFS :: FastString -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkVarOccFS"><span class="hs-identifier hs-var hs-var">mkVarOccFS</span></a></span></span><span> </span><span id="local-6989586621680804608"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804608"><span class="hs-identifier hs-var">fs</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkOccNameFS"><span class="hs-identifier hs-var">mkOccNameFS</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var">varName</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804608"><span class="hs-identifier hs-var">fs</span></a></span><span>
</span><span id="line-312"></span><span>
</span><span id="line-313"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkDataOcc"><span class="hs-identifier hs-type">mkDataOcc</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>
</span><span id="line-314"></span><span id="mkDataOcc"><span class="annot"><span class="annottext">mkDataOcc :: String -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkDataOcc"><span class="hs-identifier hs-var hs-var">mkDataOcc</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; String -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkOccName"><span class="hs-identifier hs-var">mkOccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#dataName"><span class="hs-identifier hs-var">dataName</span></a></span><span>
</span><span id="line-315"></span><span>
</span><span id="line-316"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkDataOccFS"><span class="hs-identifier hs-type">mkDataOccFS</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>
</span><span id="line-317"></span><span id="mkDataOccFS"><span class="annot"><span class="annottext">mkDataOccFS :: FastString -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkDataOccFS"><span class="hs-identifier hs-var hs-var">mkDataOccFS</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkOccNameFS"><span class="hs-identifier hs-var">mkOccNameFS</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#dataName"><span class="hs-identifier hs-var">dataName</span></a></span><span>
</span><span id="line-318"></span><span>
</span><span id="line-319"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkTyVarOcc"><span class="hs-identifier hs-type">mkTyVarOcc</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>
</span><span id="line-320"></span><span id="mkTyVarOcc"><span class="annot"><span class="annottext">mkTyVarOcc :: String -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkTyVarOcc"><span class="hs-identifier hs-var hs-var">mkTyVarOcc</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; String -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkOccName"><span class="hs-identifier hs-var">mkOccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#tvName"><span class="hs-identifier hs-var">tvName</span></a></span><span>
</span><span id="line-321"></span><span>
</span><span id="line-322"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkTyVarOccFS"><span class="hs-identifier hs-type">mkTyVarOccFS</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>
</span><span id="line-323"></span><span id="mkTyVarOccFS"><span class="annot"><span class="annottext">mkTyVarOccFS :: FastString -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkTyVarOccFS"><span class="hs-identifier hs-var hs-var">mkTyVarOccFS</span></a></span></span><span> </span><span id="local-6989586621680804607"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804607"><span class="hs-identifier hs-var">fs</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkOccNameFS"><span class="hs-identifier hs-var">mkOccNameFS</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#tvName"><span class="hs-identifier hs-var">tvName</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804607"><span class="hs-identifier hs-var">fs</span></a></span><span>
</span><span id="line-324"></span><span>
</span><span id="line-325"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkTcOcc"><span class="hs-identifier hs-type">mkTcOcc</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>
</span><span id="line-326"></span><span id="mkTcOcc"><span class="annot"><span class="annottext">mkTcOcc :: String -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkTcOcc"><span class="hs-identifier hs-var hs-var">mkTcOcc</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; String -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkOccName"><span class="hs-identifier hs-var">mkOccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#tcName"><span class="hs-identifier hs-var">tcName</span></a></span><span>
</span><span id="line-327"></span><span>
</span><span id="line-328"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkTcOccFS"><span class="hs-identifier hs-type">mkTcOccFS</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>
</span><span id="line-329"></span><span id="mkTcOccFS"><span class="annot"><span class="annottext">mkTcOccFS :: FastString -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkTcOccFS"><span class="hs-identifier hs-var hs-var">mkTcOccFS</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkOccNameFS"><span class="hs-identifier hs-var">mkOccNameFS</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#tcName"><span class="hs-identifier hs-var">tcName</span></a></span><span>
</span><span id="line-330"></span><span>
</span><span id="line-331"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkClsOcc"><span class="hs-identifier hs-type">mkClsOcc</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>
</span><span id="line-332"></span><span id="mkClsOcc"><span class="annot"><span class="annottext">mkClsOcc :: String -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkClsOcc"><span class="hs-identifier hs-var hs-var">mkClsOcc</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; String -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkOccName"><span class="hs-identifier hs-var">mkOccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#clsName"><span class="hs-identifier hs-var">clsName</span></a></span><span>
</span><span id="line-333"></span><span>
</span><span id="line-334"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkClsOccFS"><span class="hs-identifier hs-type">mkClsOccFS</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>
</span><span id="line-335"></span><span id="mkClsOccFS"><span class="annot"><span class="annottext">mkClsOccFS :: FastString -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkClsOccFS"><span class="hs-identifier hs-var hs-var">mkClsOccFS</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkOccNameFS"><span class="hs-identifier hs-var">mkOccNameFS</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#clsName"><span class="hs-identifier hs-var">clsName</span></a></span><span>
</span><span id="line-336"></span><span>
</span><span id="line-337"></span><span class="hs-comment">-- demoteOccName lowers the Namespace of OccName.</span><span>
</span><span id="line-338"></span><span class="hs-comment">-- see Note [Demotion]</span><span>
</span><span id="line-339"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#demoteOccName"><span class="hs-identifier hs-type">demoteOccName</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>
</span><span id="line-340"></span><span id="demoteOccName"><span class="annot"><span class="annottext">demoteOccName :: OccName -&gt; Maybe OccName
</span><a href="GHC.Types.Name.Occurrence.html#demoteOccName"><span class="hs-identifier hs-var hs-var">demoteOccName</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span id="local-6989586621680804606"><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804606"><span class="hs-identifier hs-var">space</span></a></span></span><span> </span><span id="local-6989586621680804605"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804605"><span class="hs-identifier hs-var">name</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-341"></span><span>  </span><span id="local-6989586621680804604"><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804604"><span class="hs-identifier hs-var">space'</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; Maybe NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#demoteNameSpace"><span class="hs-identifier hs-var">demoteNameSpace</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804606"><span class="hs-identifier hs-var">space</span></a></span><span>
</span><span id="line-342"></span><span>  </span><span class="annot"><span class="annottext">OccName -&gt; Maybe OccName
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="annot"><span class="annottext">(OccName -&gt; Maybe OccName) -&gt; OccName -&gt; Maybe OccName
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-var">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804604"><span class="hs-identifier hs-var">space'</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804605"><span class="hs-identifier hs-var">name</span></a></span><span>
</span><span id="line-343"></span><span>
</span><span id="line-344"></span><span class="hs-comment">-- Name spaces are related if there is a chance to mean the one when one writes</span><span>
</span><span id="line-345"></span><span class="hs-comment">-- the other, i.e. variables &lt;-&gt; data constructors and type variables &lt;-&gt; type constructors</span><span>
</span><span id="line-346"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#nameSpacesRelated"><span class="hs-identifier hs-type">nameSpacesRelated</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-347"></span><span id="nameSpacesRelated"><span class="annot"><span class="annottext">nameSpacesRelated :: NameSpace -&gt; NameSpace -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#nameSpacesRelated"><span class="hs-identifier hs-var hs-var">nameSpacesRelated</span></a></span></span><span> </span><span id="local-6989586621680804603"><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804603"><span class="hs-identifier hs-var">ns1</span></a></span></span><span> </span><span id="local-6989586621680804602"><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804602"><span class="hs-identifier hs-var">ns2</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804603"><span class="hs-identifier hs-var">ns1</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; NameSpace -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">==</span></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804602"><span class="hs-identifier hs-var">ns2</span></a></span><span> </span><span class="annot"><span class="annottext">Bool -&gt; Bool -&gt; Bool
</span><span class="hs-operator hs-var">||</span></span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#otherNameSpace"><span class="hs-identifier hs-var">otherNameSpace</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804603"><span class="hs-identifier hs-var">ns1</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; NameSpace -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">==</span></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804602"><span class="hs-identifier hs-var">ns2</span></a></span><span>
</span><span id="line-348"></span><span>
</span><span id="line-349"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#otherNameSpace"><span class="hs-identifier hs-type">otherNameSpace</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span><span>
</span><span id="line-350"></span><span id="otherNameSpace"><span class="annot"><span class="annottext">otherNameSpace :: NameSpace -&gt; NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#otherNameSpace"><span class="hs-identifier hs-var hs-var">otherNameSpace</span></a></span></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#VarName"><span class="hs-identifier hs-var">VarName</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#DataName"><span class="hs-identifier hs-var">DataName</span></a></span><span>
</span><span id="line-351"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#otherNameSpace"><span class="hs-identifier hs-var">otherNameSpace</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#DataName"><span class="hs-identifier hs-var">DataName</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#VarName"><span class="hs-identifier hs-var">VarName</span></a></span><span>
</span><span id="line-352"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#otherNameSpace"><span class="hs-identifier hs-var">otherNameSpace</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TvName"><span class="hs-identifier hs-var">TvName</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TcClsName"><span class="hs-identifier hs-var">TcClsName</span></a></span><span>
</span><span id="line-353"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#otherNameSpace"><span class="hs-identifier hs-var">otherNameSpace</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TcClsName"><span class="hs-identifier hs-var">TcClsName</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TvName"><span class="hs-identifier hs-var">TvName</span></a></span><span>
</span><span id="line-354"></span><span>
</span><span id="line-355"></span><span>
</span><span id="line-356"></span><span>
</span><span id="line-357"></span><span class="hs-comment">{- | Other names in the compiler add additional information to an OccName.
This class provides a consistent way to access the underlying OccName. -}</span><span>
</span><span id="line-359"></span><span class="hs-keyword">class</span><span> </span><span id="HasOccName"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#HasOccName"><span class="hs-identifier hs-var">HasOccName</span></a></span></span><span> </span><span id="local-6989586621680805176"><span class="annot"><a href="#local-6989586621680805176"><span class="hs-identifier hs-type">name</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-360"></span><span>  </span><span id="occName"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#occName"><span class="hs-identifier hs-type">occName</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="#local-6989586621680805176"><span class="hs-identifier hs-type">name</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>
</span><span id="line-361"></span><span>
</span><span id="line-362"></span><span class="hs-comment">{-
************************************************************************
*                                                                      *
                Environments
*                                                                      *
************************************************************************

OccEnvs are used mainly for the envts in ModIfaces.

Note [The Unique of an OccName]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
They are efficient, because FastStrings have unique Int# keys.  We assume
this key is less than 2^24, and indeed FastStrings are allocated keys
sequentially starting at 0.

So we can make a Unique using
        mkUnique ns key  :: Unique
where 'ns' is a Char representing the name space.  This in turn makes it
easy to build an OccEnv.
-}</span><span>
</span><span id="line-382"></span><span>
</span><span id="line-383"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="GHC.Types.Unique.html#Uniquable"><span class="hs-identifier hs-type">Uniquable</span></a></span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-384"></span><span>      </span><span class="hs-comment">-- See Note [The Unique of an OccName]</span><span>
</span><span id="line-385"></span><span>  </span><span id="local-6989586621680804597"><span class="annot"><span class="annottext">getUnique :: OccName -&gt; Unique
</span><a href="GHC.Types.Unique.html#getUnique"><span class="hs-identifier hs-var hs-var hs-var hs-var">getUnique</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#VarName"><span class="hs-identifier hs-var">VarName</span></a></span><span>   </span><span id="local-6989586621680804595"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804595"><span class="hs-identifier hs-var">fs</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FastString -&gt; Unique
</span><a href="GHC.Types.Unique.html#mkVarOccUnique"><span class="hs-identifier hs-var">mkVarOccUnique</span></a></span><span>  </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804595"><span class="hs-identifier hs-var">fs</span></a></span><span>
</span><span id="line-386"></span><span>  </span><span class="annot"><a href="GHC.Types.Unique.html#getUnique"><span class="hs-identifier hs-var">getUnique</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#DataName"><span class="hs-identifier hs-var">DataName</span></a></span><span>  </span><span id="local-6989586621680804593"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804593"><span class="hs-identifier hs-var">fs</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FastString -&gt; Unique
</span><a href="GHC.Types.Unique.html#mkDataOccUnique"><span class="hs-identifier hs-var">mkDataOccUnique</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804593"><span class="hs-identifier hs-var">fs</span></a></span><span>
</span><span id="line-387"></span><span>  </span><span class="annot"><a href="GHC.Types.Unique.html#getUnique"><span class="hs-identifier hs-var">getUnique</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TvName"><span class="hs-identifier hs-var">TvName</span></a></span><span>    </span><span id="local-6989586621680804591"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804591"><span class="hs-identifier hs-var">fs</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FastString -&gt; Unique
</span><a href="GHC.Types.Unique.html#mkTvOccUnique"><span class="hs-identifier hs-var">mkTvOccUnique</span></a></span><span>   </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804591"><span class="hs-identifier hs-var">fs</span></a></span><span>
</span><span id="line-388"></span><span>  </span><span class="annot"><a href="GHC.Types.Unique.html#getUnique"><span class="hs-identifier hs-var">getUnique</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TcClsName"><span class="hs-identifier hs-var">TcClsName</span></a></span><span> </span><span id="local-6989586621680804589"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804589"><span class="hs-identifier hs-var">fs</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FastString -&gt; Unique
</span><a href="GHC.Types.Unique.html#mkTcOccUnique"><span class="hs-identifier hs-var">mkTcOccUnique</span></a></span><span>   </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804589"><span class="hs-identifier hs-var">fs</span></a></span><span>
</span><span id="line-389"></span><span>
</span><span id="line-390"></span><span class="hs-keyword">newtype</span><span> </span><span id="OccEnv"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-var">OccEnv</span></a></span></span><span> </span><span id="local-6989586621680805153"><span class="annot"><a href="#local-6989586621680805153"><span class="hs-identifier hs-type">a</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="A"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-var">A</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Unique.FM.html#UniqFM"><span class="hs-identifier hs-type">UniqFM</span></a></span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805153"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-391"></span><span>  </span><span class="hs-keyword">deriving</span><span> </span><span id="local-6989586621680804547"><span id="local-6989586621680804549"><span id="local-6989586621680804551"><span id="local-6989586621680804553"><span id="local-6989586621680804555"><span id="local-6989586621680804557"><span id="local-6989586621680804559"><span id="local-6989586621680804561"><span id="local-6989586621680804563"><span id="local-6989586621680804569"><span id="local-6989586621680804571"><span id="local-6989586621680804573"><span id="local-6989586621680804577"><span id="local-6989586621680804582"><span class="annot"><span class="annottext">Typeable (OccEnv a)
Typeable (OccEnv a)
-&gt; (forall (c :: * -&gt; *).
    (forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
    -&gt; (forall g. g -&gt; c g) -&gt; OccEnv a -&gt; c (OccEnv a))
-&gt; (forall (c :: * -&gt; *).
    (forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
    -&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c (OccEnv a))
-&gt; (OccEnv a -&gt; Constr)
-&gt; (OccEnv a -&gt; DataType)
-&gt; (forall (t :: * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d. Data d =&gt; c (t d)) -&gt; Maybe (c (OccEnv a)))
-&gt; (forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d e. (Data d, Data e) =&gt; c (t d e))
    -&gt; Maybe (c (OccEnv a)))
-&gt; ((forall b. Data b =&gt; b -&gt; b) -&gt; OccEnv a -&gt; OccEnv a)
-&gt; (forall r r'.
    (r -&gt; r' -&gt; r)
    -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; OccEnv a -&gt; r)
-&gt; (forall r r'.
    (r' -&gt; r -&gt; r)
    -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; OccEnv a -&gt; r)
-&gt; (forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; OccEnv a -&gt; [u])
-&gt; (forall u. Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; OccEnv a -&gt; u)
-&gt; (forall (m :: * -&gt; *).
    Monad m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; OccEnv a -&gt; m (OccEnv a))
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; OccEnv a -&gt; m (OccEnv a))
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; OccEnv a -&gt; m (OccEnv a))
-&gt; Data (OccEnv a)
OccEnv a -&gt; DataType
OccEnv a -&gt; Constr
(forall b. Data b =&gt; b -&gt; b) -&gt; OccEnv a -&gt; OccEnv a
forall {a}. Data a =&gt; Typeable (OccEnv a)
forall a. Data a =&gt; OccEnv a -&gt; DataType
forall a. Data a =&gt; OccEnv a -&gt; Constr
forall a.
Data a =&gt;
(forall b. Data b =&gt; b -&gt; b) -&gt; OccEnv a -&gt; OccEnv a
forall a u.
Data a =&gt;
Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; OccEnv a -&gt; u
forall a u.
Data a =&gt;
(forall d. Data d =&gt; d -&gt; u) -&gt; OccEnv a -&gt; [u]
forall a r r'.
Data a =&gt;
(r -&gt; r' -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; OccEnv a -&gt; r
forall a r r'.
Data a =&gt;
(r' -&gt; r -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; OccEnv a -&gt; r
forall a (m :: * -&gt; *).
(Data a, Monad m) =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; OccEnv a -&gt; m (OccEnv a)
forall a (m :: * -&gt; *).
(Data a, MonadPlus m) =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; OccEnv a -&gt; m (OccEnv a)
forall a (c :: * -&gt; *).
Data a =&gt;
(forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
-&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c (OccEnv a)
forall a (c :: * -&gt; *).
Data a =&gt;
(forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
-&gt; (forall g. g -&gt; c g) -&gt; OccEnv a -&gt; c (OccEnv a)
forall a (t :: * -&gt; *) (c :: * -&gt; *).
(Data a, Typeable t) =&gt;
(forall d. Data d =&gt; c (t d)) -&gt; Maybe (c (OccEnv a))
forall a (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
(Data a, Typeable t) =&gt;
(forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c (OccEnv a))
forall a.
Typeable a
-&gt; (forall (c :: * -&gt; *).
    (forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
    -&gt; (forall g. g -&gt; c g) -&gt; a -&gt; c a)
-&gt; (forall (c :: * -&gt; *).
    (forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
    -&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c a)
-&gt; (a -&gt; Constr)
-&gt; (a -&gt; DataType)
-&gt; (forall (t :: * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d. Data d =&gt; c (t d)) -&gt; Maybe (c a))
-&gt; (forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c a))
-&gt; ((forall b. Data b =&gt; b -&gt; b) -&gt; a -&gt; a)
-&gt; (forall r r'.
    (r -&gt; r' -&gt; r) -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; a -&gt; r)
-&gt; (forall r r'.
    (r' -&gt; r -&gt; r) -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; a -&gt; r)
-&gt; (forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; a -&gt; [u])
-&gt; (forall u. Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; a -&gt; u)
-&gt; (forall (m :: * -&gt; *).
    Monad m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; a -&gt; m a)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; a -&gt; m a)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; a -&gt; m a)
-&gt; Data a
forall u. Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; OccEnv a -&gt; u
forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; OccEnv a -&gt; [u]
forall r r'.
(r -&gt; r' -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; OccEnv a -&gt; r
forall r r'.
(r' -&gt; r -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; OccEnv a -&gt; r
forall (m :: * -&gt; *).
Monad m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; OccEnv a -&gt; m (OccEnv a)
forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; OccEnv a -&gt; m (OccEnv a)
forall (c :: * -&gt; *).
(forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
-&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c (OccEnv a)
forall (c :: * -&gt; *).
(forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
-&gt; (forall g. g -&gt; c g) -&gt; OccEnv a -&gt; c (OccEnv a)
forall (t :: * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d. Data d =&gt; c (t d)) -&gt; Maybe (c (OccEnv a))
forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c (OccEnv a))
gmapMo :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; OccEnv a -&gt; m (OccEnv a)
$cgmapMo :: forall a (m :: * -&gt; *).
(Data a, MonadPlus m) =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; OccEnv a -&gt; m (OccEnv a)
gmapMp :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; OccEnv a -&gt; m (OccEnv a)
$cgmapMp :: forall a (m :: * -&gt; *).
(Data a, MonadPlus m) =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; OccEnv a -&gt; m (OccEnv a)
gmapM :: forall (m :: * -&gt; *).
Monad m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; OccEnv a -&gt; m (OccEnv a)
$cgmapM :: forall a (m :: * -&gt; *).
(Data a, Monad m) =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; OccEnv a -&gt; m (OccEnv a)
gmapQi :: forall u. Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; OccEnv a -&gt; u
$cgmapQi :: forall a u.
Data a =&gt;
Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; OccEnv a -&gt; u
gmapQ :: forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; OccEnv a -&gt; [u]
$cgmapQ :: forall a u.
Data a =&gt;
(forall d. Data d =&gt; d -&gt; u) -&gt; OccEnv a -&gt; [u]
gmapQr :: forall r r'.
(r' -&gt; r -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; OccEnv a -&gt; r
$cgmapQr :: forall a r r'.
Data a =&gt;
(r' -&gt; r -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; OccEnv a -&gt; r
gmapQl :: forall r r'.
(r -&gt; r' -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; OccEnv a -&gt; r
$cgmapQl :: forall a r r'.
Data a =&gt;
(r -&gt; r' -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; OccEnv a -&gt; r
gmapT :: (forall b. Data b =&gt; b -&gt; b) -&gt; OccEnv a -&gt; OccEnv a
$cgmapT :: forall a.
Data a =&gt;
(forall b. Data b =&gt; b -&gt; b) -&gt; OccEnv a -&gt; OccEnv a
dataCast2 :: forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c (OccEnv a))
$cdataCast2 :: forall a (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
(Data a, Typeable t) =&gt;
(forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c (OccEnv a))
dataCast1 :: forall (t :: * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d. Data d =&gt; c (t d)) -&gt; Maybe (c (OccEnv a))
$cdataCast1 :: forall a (t :: * -&gt; *) (c :: * -&gt; *).
(Data a, Typeable t) =&gt;
(forall d. Data d =&gt; c (t d)) -&gt; Maybe (c (OccEnv a))
dataTypeOf :: OccEnv a -&gt; DataType
$cdataTypeOf :: forall a. Data a =&gt; OccEnv a -&gt; DataType
toConstr :: OccEnv a -&gt; Constr
$ctoConstr :: forall a. Data a =&gt; OccEnv a -&gt; Constr
gunfold :: forall (c :: * -&gt; *).
(forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
-&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c (OccEnv a)
$cgunfold :: forall a (c :: * -&gt; *).
Data a =&gt;
(forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
-&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c (OccEnv a)
gfoldl :: forall (c :: * -&gt; *).
(forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
-&gt; (forall g. g -&gt; c g) -&gt; OccEnv a -&gt; c (OccEnv a)
$cgfoldl :: forall a (c :: * -&gt; *).
Data a =&gt;
(forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
-&gt; (forall g. g -&gt; c g) -&gt; OccEnv a -&gt; c (OccEnv a)
</span><a href="../../base/src/Data.Data.html#Data"><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Data</span></a></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span>
</span><span id="line-392"></span><span>
</span><span id="line-393"></span><span id="local-6989586621680805152"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#emptyOccEnv"><span class="hs-identifier hs-type">emptyOccEnv</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805152"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-394"></span><span id="local-6989586621680805148"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#unitOccEnv"><span class="hs-identifier hs-type">unitOccEnv</span></a></span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621680805148"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805148"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-395"></span><span id="local-6989586621680805144"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#extendOccEnv"><span class="hs-identifier hs-type">extendOccEnv</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805144"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621680805144"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805144"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-396"></span><span id="local-6989586621680805140"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#extendOccEnvList"><span class="hs-identifier hs-type">extendOccEnvList</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805140"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="#local-6989586621680805140"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805140"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-397"></span><span id="local-6989586621680805136"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#lookupOccEnv"><span class="hs-identifier hs-type">lookupOccEnv</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805136"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805136"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-398"></span><span id="local-6989586621680805132"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkOccEnv"><span class="hs-identifier hs-type">mkOccEnv</span></a></span><span>     </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">[</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span class="hs-special">,</span><span class="annot"><a href="#local-6989586621680805132"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805132"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-399"></span><span id="local-6989586621680805087"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkOccEnv_C"><span class="hs-identifier hs-type">mkOccEnv_C</span></a></span><span>   </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621680805087"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621680805087"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621680805087"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span class="hs-special">,</span><span class="annot"><a href="#local-6989586621680805087"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805087"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-400"></span><span id="local-6989586621680805128"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#elemOccEnv"><span class="hs-identifier hs-type">elemOccEnv</span></a></span><span>   </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805128"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span></span><span>
</span><span id="line-401"></span><span id="local-6989586621680805123"><span id="local-6989586621680805124"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#foldOccEnv"><span class="hs-identifier hs-type">foldOccEnv</span></a></span><span>   </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621680805124"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621680805123"><span class="hs-identifier hs-type">b</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621680805123"><span class="hs-identifier hs-type">b</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621680805123"><span class="hs-identifier hs-type">b</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805124"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621680805123"><span class="hs-identifier hs-type">b</span></a></span></span></span><span>
</span><span id="line-402"></span><span id="local-6989586621680805117"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#occEnvElts"><span class="hs-identifier hs-type">occEnvElts</span></a></span><span>   </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805117"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="#local-6989586621680805117"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">]</span></span><span>
</span><span id="line-403"></span><span id="local-6989586621680805105"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#extendOccEnv_C"><span class="hs-identifier hs-type">extendOccEnv_C</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621680805105"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-glyph">-&gt;</span><span class="annot"><a href="#local-6989586621680805105"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-glyph">-&gt;</span><span class="annot"><a href="#local-6989586621680805105"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805105"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621680805105"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805105"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-404"></span><span id="local-6989586621680805100"><span id="local-6989586621680805101"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#extendOccEnv_Acc"><span class="hs-identifier hs-type">extendOccEnv_Acc</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621680805101"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-glyph">-&gt;</span><span class="annot"><a href="#local-6989586621680805100"><span class="hs-identifier hs-type">b</span></a></span><span class="hs-glyph">-&gt;</span><span class="annot"><a href="#local-6989586621680805100"><span class="hs-identifier hs-type">b</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621680805101"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-glyph">-&gt;</span><span class="annot"><a href="#local-6989586621680805100"><span class="hs-identifier hs-type">b</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805100"><span class="hs-identifier hs-type">b</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621680805101"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805100"><span class="hs-identifier hs-type">b</span></a></span></span></span><span>
</span><span id="line-405"></span><span id="local-6989586621680805113"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#plusOccEnv"><span class="hs-identifier hs-type">plusOccEnv</span></a></span><span>     </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805113"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805113"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805113"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-406"></span><span id="local-6989586621680805109"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#plusOccEnv_C"><span class="hs-identifier hs-type">plusOccEnv_C</span></a></span><span>   </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621680805109"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-glyph">-&gt;</span><span class="annot"><a href="#local-6989586621680805109"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-glyph">-&gt;</span><span class="annot"><a href="#local-6989586621680805109"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805109"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805109"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805109"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-407"></span><span id="local-6989586621680805093"><span id="local-6989586621680805094"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mapOccEnv"><span class="hs-identifier hs-type">mapOccEnv</span></a></span><span>      </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621680805094"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-glyph">-&gt;</span><span class="annot"><a href="#local-6989586621680805093"><span class="hs-identifier hs-type">b</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805094"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805093"><span class="hs-identifier hs-type">b</span></a></span></span></span><span>
</span><span id="line-408"></span><span id="local-6989586621680805083"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#delFromOccEnv"><span class="hs-identifier hs-type">delFromOccEnv</span></a></span><span>      </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805083"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805083"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-409"></span><span id="local-6989586621680805079"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#delListFromOccEnv"><span class="hs-identifier hs-type">delListFromOccEnv</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805079"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805079"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-410"></span><span id="local-6989586621680805075"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#filterOccEnv"><span class="hs-identifier hs-type">filterOccEnv</span></a></span><span>       </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621680805075"><span class="hs-identifier hs-type">elt</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805075"><span class="hs-identifier hs-type">elt</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805075"><span class="hs-identifier hs-type">elt</span></a></span></span><span>
</span><span id="line-411"></span><span id="local-6989586621680805071"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#alterOccEnv"><span class="hs-identifier hs-type">alterOccEnv</span></a></span><span>        </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805071"><span class="hs-identifier hs-type">elt</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805071"><span class="hs-identifier hs-type">elt</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805071"><span class="hs-identifier hs-type">elt</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805071"><span class="hs-identifier hs-type">elt</span></a></span></span><span>
</span><span id="line-412"></span><span>
</span><span id="line-413"></span><span id="emptyOccEnv"><span class="annot"><span class="annottext">emptyOccEnv :: forall a. OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#emptyOccEnv"><span class="hs-identifier hs-var hs-var">emptyOccEnv</span></a></span></span><span>      </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a -&gt; OccEnv a
forall a. UniqFM OccName a -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-var">A</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a
forall key elt. UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#emptyUFM"><span class="hs-identifier hs-var">emptyUFM</span></a></span><span>
</span><span id="line-414"></span><span id="unitOccEnv"><span class="annot"><span class="annottext">unitOccEnv :: forall a. OccName -&gt; a -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#unitOccEnv"><span class="hs-identifier hs-var hs-var">unitOccEnv</span></a></span></span><span> </span><span id="local-6989586621680804544"><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804544"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span id="local-6989586621680804543"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621680804543"><span class="hs-identifier hs-var">y</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a -&gt; OccEnv a
forall a. UniqFM OccName a -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-var">A</span></a></span><span> </span><span class="annot"><span class="annottext">(UniqFM OccName a -&gt; OccEnv a) -&gt; UniqFM OccName a -&gt; OccEnv a
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">OccName -&gt; a -&gt; UniqFM OccName a
forall key elt. Uniquable key =&gt; key -&gt; elt -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#unitUFM"><span class="hs-identifier hs-var">unitUFM</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804544"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621680804543"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-415"></span><span id="extendOccEnv"><span class="annot"><span class="annottext">extendOccEnv :: forall a. OccEnv a -&gt; OccName -&gt; a -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#extendOccEnv"><span class="hs-identifier hs-var hs-var">extendOccEnv</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-type">A</span></a></span><span> </span><span id="local-6989586621680804540"><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804540"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621680804539"><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804539"><span class="hs-identifier hs-var">y</span></a></span></span><span> </span><span id="local-6989586621680804538"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621680804538"><span class="hs-identifier hs-var">z</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a -&gt; OccEnv a
forall a. UniqFM OccName a -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-var">A</span></a></span><span> </span><span class="annot"><span class="annottext">(UniqFM OccName a -&gt; OccEnv a) -&gt; UniqFM OccName a -&gt; OccEnv a
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a -&gt; OccName -&gt; a -&gt; UniqFM OccName a
forall key elt.
Uniquable key =&gt;
UniqFM key elt -&gt; key -&gt; elt -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#addToUFM"><span class="hs-identifier hs-var">addToUFM</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804540"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804539"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621680804538"><span class="hs-identifier hs-var">z</span></a></span><span>
</span><span id="line-416"></span><span id="extendOccEnvList"><span class="annot"><span class="annottext">extendOccEnvList :: forall a. OccEnv a -&gt; [(OccName, a)] -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#extendOccEnvList"><span class="hs-identifier hs-var hs-var">extendOccEnvList</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-type">A</span></a></span><span> </span><span id="local-6989586621680804535"><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804535"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621680804534"><span class="annot"><span class="annottext">[(OccName, a)]
</span><a href="#local-6989586621680804534"><span class="hs-identifier hs-var">l</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a -&gt; OccEnv a
forall a. UniqFM OccName a -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-var">A</span></a></span><span> </span><span class="annot"><span class="annottext">(UniqFM OccName a -&gt; OccEnv a) -&gt; UniqFM OccName a -&gt; OccEnv a
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a -&gt; [(OccName, a)] -&gt; UniqFM OccName a
forall key elt.
Uniquable key =&gt;
UniqFM key elt -&gt; [(key, elt)] -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#addListToUFM"><span class="hs-identifier hs-var">addListToUFM</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804535"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">[(OccName, a)]
</span><a href="#local-6989586621680804534"><span class="hs-identifier hs-var">l</span></a></span><span>
</span><span id="line-417"></span><span id="lookupOccEnv"><span class="annot"><span class="annottext">lookupOccEnv :: forall a. OccEnv a -&gt; OccName -&gt; Maybe a
</span><a href="GHC.Types.Name.Occurrence.html#lookupOccEnv"><span class="hs-identifier hs-var hs-var">lookupOccEnv</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-type">A</span></a></span><span> </span><span id="local-6989586621680804531"><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804531"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621680804530"><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804530"><span class="hs-identifier hs-var">y</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a -&gt; OccName -&gt; Maybe a
forall key elt. Uniquable key =&gt; UniqFM key elt -&gt; key -&gt; Maybe elt
</span><a href="GHC.Types.Unique.FM.html#lookupUFM"><span class="hs-identifier hs-var">lookupUFM</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804531"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804530"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-418"></span><span id="mkOccEnv"><span class="annot"><span class="annottext">mkOccEnv :: forall a. [(OccName, a)] -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#mkOccEnv"><span class="hs-identifier hs-var hs-var">mkOccEnv</span></a></span></span><span>     </span><span id="local-6989586621680804527"><span class="annot"><span class="annottext">[(OccName, a)]
</span><a href="#local-6989586621680804527"><span class="hs-identifier hs-var">l</span></a></span></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a -&gt; OccEnv a
forall a. UniqFM OccName a -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-var">A</span></a></span><span> </span><span class="annot"><span class="annottext">(UniqFM OccName a -&gt; OccEnv a) -&gt; UniqFM OccName a -&gt; OccEnv a
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">[(OccName, a)] -&gt; UniqFM OccName a
forall key elt. Uniquable key =&gt; [(key, elt)] -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#listToUFM"><span class="hs-identifier hs-var">listToUFM</span></a></span><span> </span><span class="annot"><span class="annottext">[(OccName, a)]
</span><a href="#local-6989586621680804527"><span class="hs-identifier hs-var">l</span></a></span><span>
</span><span id="line-419"></span><span id="elemOccEnv"><span class="annot"><span class="annottext">elemOccEnv :: forall a. OccName -&gt; OccEnv a -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#elemOccEnv"><span class="hs-identifier hs-var hs-var">elemOccEnv</span></a></span></span><span> </span><span id="local-6989586621680804524"><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804524"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-type">A</span></a></span><span> </span><span id="local-6989586621680804523"><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804523"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">OccName -&gt; UniqFM OccName a -&gt; Bool
forall key elt. Uniquable key =&gt; key -&gt; UniqFM key elt -&gt; Bool
</span><a href="GHC.Types.Unique.FM.html#elemUFM"><span class="hs-identifier hs-var">elemUFM</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804524"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804523"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-420"></span><span id="foldOccEnv"><span class="annot"><span class="annottext">foldOccEnv :: forall a b. (a -&gt; b -&gt; b) -&gt; b -&gt; OccEnv a -&gt; b
</span><a href="GHC.Types.Name.Occurrence.html#foldOccEnv"><span class="hs-identifier hs-var hs-var">foldOccEnv</span></a></span></span><span> </span><span id="local-6989586621680804521"><span class="annot"><span class="annottext">a -&gt; b -&gt; b
</span><a href="#local-6989586621680804521"><span class="hs-identifier hs-var">a</span></a></span></span><span> </span><span id="local-6989586621680804520"><span class="annot"><span class="annottext">b
</span><a href="#local-6989586621680804520"><span class="hs-identifier hs-var">b</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-type">A</span></a></span><span> </span><span id="local-6989586621680804519"><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804519"><span class="hs-identifier hs-var">c</span></a></span></span><span class="hs-special">)</span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(a -&gt; b -&gt; b) -&gt; b -&gt; UniqFM OccName a -&gt; b
forall elt a key. (elt -&gt; a -&gt; a) -&gt; a -&gt; UniqFM key elt -&gt; a
</span><a href="GHC.Types.Unique.FM.html#foldUFM"><span class="hs-identifier hs-var">foldUFM</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; b -&gt; b
</span><a href="#local-6989586621680804521"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">b
</span><a href="#local-6989586621680804520"><span class="hs-identifier hs-var">b</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804519"><span class="hs-identifier hs-var">c</span></a></span><span>
</span><span id="line-421"></span><span id="occEnvElts"><span class="annot"><span class="annottext">occEnvElts :: forall a. OccEnv a -&gt; [a]
</span><a href="GHC.Types.Name.Occurrence.html#occEnvElts"><span class="hs-identifier hs-var hs-var">occEnvElts</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-type">A</span></a></span><span> </span><span id="local-6989586621680804517"><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804517"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span>         </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a -&gt; [a]
forall key elt. UniqFM key elt -&gt; [elt]
</span><a href="GHC.Types.Unique.FM.html#eltsUFM"><span class="hs-identifier hs-var">eltsUFM</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804517"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-422"></span><span id="plusOccEnv"><span class="annot"><span class="annottext">plusOccEnv :: forall a. OccEnv a -&gt; OccEnv a -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#plusOccEnv"><span class="hs-identifier hs-var hs-var">plusOccEnv</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-type">A</span></a></span><span> </span><span id="local-6989586621680804515"><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804515"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-type">A</span></a></span><span> </span><span id="local-6989586621680804514"><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804514"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a -&gt; OccEnv a
forall a. UniqFM OccName a -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-var">A</span></a></span><span> </span><span class="annot"><span class="annottext">(UniqFM OccName a -&gt; OccEnv a) -&gt; UniqFM OccName a -&gt; OccEnv a
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a -&gt; UniqFM OccName a -&gt; UniqFM OccName a
forall key elt. UniqFM key elt -&gt; UniqFM key elt -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#plusUFM"><span class="hs-identifier hs-var">plusUFM</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804515"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804514"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-423"></span><span id="plusOccEnv_C"><span class="annot"><span class="annottext">plusOccEnv_C :: forall a. (a -&gt; a -&gt; a) -&gt; OccEnv a -&gt; OccEnv a -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#plusOccEnv_C"><span class="hs-identifier hs-var hs-var">plusOccEnv_C</span></a></span></span><span> </span><span id="local-6989586621680804512"><span class="annot"><span class="annottext">a -&gt; a -&gt; a
</span><a href="#local-6989586621680804512"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-type">A</span></a></span><span> </span><span id="local-6989586621680804511"><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804511"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-type">A</span></a></span><span> </span><span id="local-6989586621680804510"><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804510"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a -&gt; OccEnv a
forall a. UniqFM OccName a -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-var">A</span></a></span><span> </span><span class="annot"><span class="annottext">(UniqFM OccName a -&gt; OccEnv a) -&gt; UniqFM OccName a -&gt; OccEnv a
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">(a -&gt; a -&gt; a)
-&gt; UniqFM OccName a -&gt; UniqFM OccName a -&gt; UniqFM OccName a
forall elt key.
(elt -&gt; elt -&gt; elt)
-&gt; UniqFM key elt -&gt; UniqFM key elt -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#plusUFM_C"><span class="hs-identifier hs-var">plusUFM_C</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; a -&gt; a
</span><a href="#local-6989586621680804512"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804511"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804510"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-424"></span><span id="extendOccEnv_C"><span class="annot"><span class="annottext">extendOccEnv_C :: forall a. (a -&gt; a -&gt; a) -&gt; OccEnv a -&gt; OccName -&gt; a -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#extendOccEnv_C"><span class="hs-identifier hs-var hs-var">extendOccEnv_C</span></a></span></span><span> </span><span id="local-6989586621680804507"><span class="annot"><span class="annottext">a -&gt; a -&gt; a
</span><a href="#local-6989586621680804507"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-type">A</span></a></span><span> </span><span id="local-6989586621680804506"><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804506"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621680804505"><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804505"><span class="hs-identifier hs-var">y</span></a></span></span><span> </span><span id="local-6989586621680804504"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621680804504"><span class="hs-identifier hs-var">z</span></a></span></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a -&gt; OccEnv a
forall a. UniqFM OccName a -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-var">A</span></a></span><span> </span><span class="annot"><span class="annottext">(UniqFM OccName a -&gt; OccEnv a) -&gt; UniqFM OccName a -&gt; OccEnv a
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">(a -&gt; a -&gt; a)
-&gt; UniqFM OccName a -&gt; OccName -&gt; a -&gt; UniqFM OccName a
forall key elt.
Uniquable key =&gt;
(elt -&gt; elt -&gt; elt)
-&gt; UniqFM key elt -&gt; key -&gt; elt -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#addToUFM_C"><span class="hs-identifier hs-var">addToUFM_C</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; a -&gt; a
</span><a href="#local-6989586621680804507"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804506"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804505"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621680804504"><span class="hs-identifier hs-var">z</span></a></span><span>
</span><span id="line-425"></span><span id="extendOccEnv_Acc"><span class="annot"><span class="annottext">extendOccEnv_Acc :: forall a b.
(a -&gt; b -&gt; b) -&gt; (a -&gt; b) -&gt; OccEnv b -&gt; OccName -&gt; a -&gt; OccEnv b
</span><a href="GHC.Types.Name.Occurrence.html#extendOccEnv_Acc"><span class="hs-identifier hs-var hs-var">extendOccEnv_Acc</span></a></span></span><span> </span><span id="local-6989586621680804501"><span class="annot"><span class="annottext">a -&gt; b -&gt; b
</span><a href="#local-6989586621680804501"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span id="local-6989586621680804500"><span class="annot"><span class="annottext">a -&gt; b
</span><a href="#local-6989586621680804500"><span class="hs-identifier hs-var">g</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-type">A</span></a></span><span> </span><span id="local-6989586621680804499"><span class="annot"><span class="annottext">UniqFM OccName b
</span><a href="#local-6989586621680804499"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621680804498"><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804498"><span class="hs-identifier hs-var">y</span></a></span></span><span> </span><span id="local-6989586621680804497"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621680804497"><span class="hs-identifier hs-var">z</span></a></span></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqFM OccName b -&gt; OccEnv b
forall a. UniqFM OccName a -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-var">A</span></a></span><span> </span><span class="annot"><span class="annottext">(UniqFM OccName b -&gt; OccEnv b) -&gt; UniqFM OccName b -&gt; OccEnv b
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">(a -&gt; b -&gt; b)
-&gt; (a -&gt; b) -&gt; UniqFM OccName b -&gt; OccName -&gt; a -&gt; UniqFM OccName b
forall key elt elts.
Uniquable key =&gt;
(elt -&gt; elts -&gt; elts)
-&gt; (elt -&gt; elts)
-&gt; UniqFM key elts
-&gt; key
-&gt; elt
-&gt; UniqFM key elts
</span><a href="GHC.Types.Unique.FM.html#addToUFM_Acc"><span class="hs-identifier hs-var">addToUFM_Acc</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; b -&gt; b
</span><a href="#local-6989586621680804501"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; b
</span><a href="#local-6989586621680804500"><span class="hs-identifier hs-var">g</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName b
</span><a href="#local-6989586621680804499"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804498"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621680804497"><span class="hs-identifier hs-var">z</span></a></span><span>
</span><span id="line-426"></span><span id="mapOccEnv"><span class="annot"><span class="annottext">mapOccEnv :: forall a b. (a -&gt; b) -&gt; OccEnv a -&gt; OccEnv b
</span><a href="GHC.Types.Name.Occurrence.html#mapOccEnv"><span class="hs-identifier hs-var hs-var">mapOccEnv</span></a></span></span><span> </span><span id="local-6989586621680804495"><span class="annot"><span class="annottext">a -&gt; b
</span><a href="#local-6989586621680804495"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-type">A</span></a></span><span> </span><span id="local-6989586621680804494"><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804494"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqFM OccName b -&gt; OccEnv b
forall a. UniqFM OccName a -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-var">A</span></a></span><span> </span><span class="annot"><span class="annottext">(UniqFM OccName b -&gt; OccEnv b) -&gt; UniqFM OccName b -&gt; OccEnv b
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">(a -&gt; b) -&gt; UniqFM OccName a -&gt; UniqFM OccName b
forall elt1 elt2 key.
(elt1 -&gt; elt2) -&gt; UniqFM key elt1 -&gt; UniqFM key elt2
</span><a href="GHC.Types.Unique.FM.html#mapUFM"><span class="hs-identifier hs-var">mapUFM</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; b
</span><a href="#local-6989586621680804495"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804494"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-427"></span><span id="mkOccEnv_C"><span class="annot"><span class="annottext">mkOccEnv_C :: forall a. (a -&gt; a -&gt; a) -&gt; [(OccName, a)] -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#mkOccEnv_C"><span class="hs-identifier hs-var hs-var">mkOccEnv_C</span></a></span></span><span> </span><span id="local-6989586621680804491"><span class="annot"><span class="annottext">a -&gt; a -&gt; a
</span><a href="#local-6989586621680804491"><span class="hs-identifier hs-var">comb</span></a></span></span><span> </span><span id="local-6989586621680804490"><span class="annot"><span class="annottext">[(OccName, a)]
</span><a href="#local-6989586621680804490"><span class="hs-identifier hs-var">l</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a -&gt; OccEnv a
forall a. UniqFM OccName a -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-var">A</span></a></span><span> </span><span class="annot"><span class="annottext">(UniqFM OccName a -&gt; OccEnv a) -&gt; UniqFM OccName a -&gt; OccEnv a
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">(a -&gt; a -&gt; a)
-&gt; UniqFM OccName a -&gt; [(OccName, a)] -&gt; UniqFM OccName a
forall key elt.
Uniquable key =&gt;
(elt -&gt; elt -&gt; elt)
-&gt; UniqFM key elt -&gt; [(key, elt)] -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#addListToUFM_C"><span class="hs-identifier hs-var">addListToUFM_C</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; a -&gt; a
</span><a href="#local-6989586621680804491"><span class="hs-identifier hs-var">comb</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a
forall key elt. UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#emptyUFM"><span class="hs-identifier hs-var">emptyUFM</span></a></span><span> </span><span class="annot"><span class="annottext">[(OccName, a)]
</span><a href="#local-6989586621680804490"><span class="hs-identifier hs-var">l</span></a></span><span>
</span><span id="line-428"></span><span id="delFromOccEnv"><span class="annot"><span class="annottext">delFromOccEnv :: forall a. OccEnv a -&gt; OccName -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#delFromOccEnv"><span class="hs-identifier hs-var hs-var">delFromOccEnv</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-type">A</span></a></span><span> </span><span id="local-6989586621680804487"><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804487"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621680804486"><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804486"><span class="hs-identifier hs-var">y</span></a></span></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a -&gt; OccEnv a
forall a. UniqFM OccName a -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-var">A</span></a></span><span> </span><span class="annot"><span class="annottext">(UniqFM OccName a -&gt; OccEnv a) -&gt; UniqFM OccName a -&gt; OccEnv a
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a -&gt; OccName -&gt; UniqFM OccName a
forall key elt.
Uniquable key =&gt;
UniqFM key elt -&gt; key -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#delFromUFM"><span class="hs-identifier hs-var">delFromUFM</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804487"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804486"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-429"></span><span id="delListFromOccEnv"><span class="annot"><span class="annottext">delListFromOccEnv :: forall a. OccEnv a -&gt; [OccName] -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#delListFromOccEnv"><span class="hs-identifier hs-var hs-var">delListFromOccEnv</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-type">A</span></a></span><span> </span><span id="local-6989586621680804483"><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804483"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621680804482"><span class="annot"><span class="annottext">[OccName]
</span><a href="#local-6989586621680804482"><span class="hs-identifier hs-var">y</span></a></span></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a -&gt; OccEnv a
forall a. UniqFM OccName a -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-var">A</span></a></span><span> </span><span class="annot"><span class="annottext">(UniqFM OccName a -&gt; OccEnv a) -&gt; UniqFM OccName a -&gt; OccEnv a
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a -&gt; [OccName] -&gt; UniqFM OccName a
forall key elt.
Uniquable key =&gt;
UniqFM key elt -&gt; [key] -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#delListFromUFM"><span class="hs-identifier hs-var">delListFromUFM</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804483"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">[OccName]
</span><a href="#local-6989586621680804482"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-430"></span><span id="filterOccEnv"><span class="annot"><span class="annottext">filterOccEnv :: forall elt. (elt -&gt; Bool) -&gt; OccEnv elt -&gt; OccEnv elt
</span><a href="GHC.Types.Name.Occurrence.html#filterOccEnv"><span class="hs-identifier hs-var hs-var">filterOccEnv</span></a></span></span><span> </span><span id="local-6989586621680804480"><span class="annot"><span class="annottext">elt -&gt; Bool
</span><a href="#local-6989586621680804480"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-type">A</span></a></span><span> </span><span id="local-6989586621680804479"><span class="annot"><span class="annottext">UniqFM OccName elt
</span><a href="#local-6989586621680804479"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqFM OccName elt -&gt; OccEnv elt
forall a. UniqFM OccName a -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-var">A</span></a></span><span> </span><span class="annot"><span class="annottext">(UniqFM OccName elt -&gt; OccEnv elt)
-&gt; UniqFM OccName elt -&gt; OccEnv elt
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">(elt -&gt; Bool) -&gt; UniqFM OccName elt -&gt; UniqFM OccName elt
forall elt key. (elt -&gt; Bool) -&gt; UniqFM key elt -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#filterUFM"><span class="hs-identifier hs-var">filterUFM</span></a></span><span> </span><span class="annot"><span class="annottext">elt -&gt; Bool
</span><a href="#local-6989586621680804480"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName elt
</span><a href="#local-6989586621680804479"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-431"></span><span id="alterOccEnv"><span class="annot"><span class="annottext">alterOccEnv :: forall elt.
(Maybe elt -&gt; Maybe elt) -&gt; OccEnv elt -&gt; OccName -&gt; OccEnv elt
</span><a href="GHC.Types.Name.Occurrence.html#alterOccEnv"><span class="hs-identifier hs-var hs-var">alterOccEnv</span></a></span></span><span> </span><span id="local-6989586621680804476"><span class="annot"><span class="annottext">Maybe elt -&gt; Maybe elt
</span><a href="#local-6989586621680804476"><span class="hs-identifier hs-var">fn</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-type">A</span></a></span><span> </span><span id="local-6989586621680804475"><span class="annot"><span class="annottext">UniqFM OccName elt
</span><a href="#local-6989586621680804475"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621680804474"><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804474"><span class="hs-identifier hs-var">k</span></a></span></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqFM OccName elt -&gt; OccEnv elt
forall a. UniqFM OccName a -&gt; OccEnv a
</span><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-var">A</span></a></span><span> </span><span class="annot"><span class="annottext">(UniqFM OccName elt -&gt; OccEnv elt)
-&gt; UniqFM OccName elt -&gt; OccEnv elt
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">(Maybe elt -&gt; Maybe elt)
-&gt; UniqFM OccName elt -&gt; OccName -&gt; UniqFM OccName elt
forall key elt.
Uniquable key =&gt;
(Maybe elt -&gt; Maybe elt) -&gt; UniqFM key elt -&gt; key -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#alterUFM"><span class="hs-identifier hs-var">alterUFM</span></a></span><span> </span><span class="annot"><span class="annottext">Maybe elt -&gt; Maybe elt
</span><a href="#local-6989586621680804476"><span class="hs-identifier hs-var">fn</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName elt
</span><a href="#local-6989586621680804475"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804474"><span class="hs-identifier hs-var">k</span></a></span><span>
</span><span id="line-432"></span><span>
</span><span id="line-433"></span><span id="local-6989586621680805067"><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621680804470"><span class="annot"><a href="GHC.Utils.Outputable.html#Outputable"><span class="hs-identifier hs-type">Outputable</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805067"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html#Outputable"><span class="hs-identifier hs-type">Outputable</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805067"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-434"></span><span>    </span><span id="local-6989586621680804468"><span class="annot"><span class="annottext">ppr :: OccEnv a -&gt; SDoc
</span><a href="#local-6989586621680804468"><span class="hs-identifier hs-var hs-var hs-var hs-var">ppr</span></a></span></span><span> </span><span id="local-6989586621680804467"><span class="annot"><span class="annottext">OccEnv a
</span><a href="#local-6989586621680804467"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(a -&gt; SDoc) -&gt; OccEnv a -&gt; SDoc
forall a. (a -&gt; SDoc) -&gt; OccEnv a -&gt; SDoc
</span><a href="GHC.Types.Name.Occurrence.html#pprOccEnv"><span class="hs-identifier hs-var">pprOccEnv</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="annot"><span class="annottext">OccEnv a
</span><a href="#local-6989586621680804467"><span class="hs-identifier hs-var">x</span></a></span></span><span>
</span><span id="line-435"></span><span>
</span><span id="line-436"></span><span id="local-6989586621680805066"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#pprOccEnv"><span class="hs-identifier hs-type">pprOccEnv</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621680805066"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html#SDoc"><span class="hs-identifier hs-type">SDoc</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccEnv"><span class="hs-identifier hs-type">OccEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805066"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html#SDoc"><span class="hs-identifier hs-type">SDoc</span></a></span></span><span>
</span><span id="line-437"></span><span id="pprOccEnv"><span class="annot"><span class="annottext">pprOccEnv :: forall a. (a -&gt; SDoc) -&gt; OccEnv a -&gt; SDoc
</span><a href="GHC.Types.Name.Occurrence.html#pprOccEnv"><span class="hs-identifier hs-var hs-var">pprOccEnv</span></a></span></span><span> </span><span id="local-6989586621680804466"><span class="annot"><span class="annottext">a -&gt; SDoc
</span><a href="#local-6989586621680804466"><span class="hs-identifier hs-var">ppr_elt</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#A"><span class="hs-identifier hs-type">A</span></a></span><span> </span><span id="local-6989586621680804465"><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804465"><span class="hs-identifier hs-var">env</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(a -&gt; SDoc) -&gt; UniqFM OccName a -&gt; SDoc
forall a key. (a -&gt; SDoc) -&gt; UniqFM key a -&gt; SDoc
</span><a href="GHC.Types.Unique.FM.html#pprUniqFM"><span class="hs-identifier hs-var">pprUniqFM</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; SDoc
</span><a href="#local-6989586621680804466"><span class="hs-identifier hs-var">ppr_elt</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM OccName a
</span><a href="#local-6989586621680804465"><span class="hs-identifier hs-var">env</span></a></span><span>
</span><span id="line-438"></span><span>
</span><span id="line-439"></span><span class="hs-keyword">type</span><span> </span><span id="OccSet"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-var">OccSet</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><a href="GHC.Types.Unique.Set.html#UniqSet"><span class="hs-identifier hs-type">UniqSet</span></a></span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>
</span><span id="line-440"></span><span>
</span><span id="line-441"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#emptyOccSet"><span class="hs-identifier hs-type">emptyOccSet</span></a></span><span>       </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span>
</span><span id="line-442"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#unitOccSet"><span class="hs-identifier hs-type">unitOccSet</span></a></span><span>        </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span>
</span><span id="line-443"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkOccSet"><span class="hs-identifier hs-type">mkOccSet</span></a></span><span>          </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span>
</span><span id="line-444"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#extendOccSet"><span class="hs-identifier hs-type">extendOccSet</span></a></span><span>      </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span>
</span><span id="line-445"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#extendOccSetList"><span class="hs-identifier hs-type">extendOccSetList</span></a></span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span>
</span><span id="line-446"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#unionOccSets"><span class="hs-identifier hs-type">unionOccSets</span></a></span><span>      </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span>
</span><span id="line-447"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#unionManyOccSets"><span class="hs-identifier hs-type">unionManyOccSets</span></a></span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span>
</span><span id="line-448"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#minusOccSet"><span class="hs-identifier hs-type">minusOccSet</span></a></span><span>       </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span>
</span><span id="line-449"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#elemOccSet"><span class="hs-identifier hs-type">elemOccSet</span></a></span><span>        </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-450"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isEmptyOccSet"><span class="hs-identifier hs-type">isEmptyOccSet</span></a></span><span>     </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-451"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#intersectOccSet"><span class="hs-identifier hs-type">intersectOccSet</span></a></span><span>   </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span>
</span><span id="line-452"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#filterOccSet"><span class="hs-identifier hs-type">filterOccSet</span></a></span><span>      </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span>
</span><span id="line-453"></span><span>
</span><span id="line-454"></span><span id="emptyOccSet"><span class="annot"><span class="annottext">emptyOccSet :: OccSet
</span><a href="GHC.Types.Name.Occurrence.html#emptyOccSet"><span class="hs-identifier hs-var hs-var">emptyOccSet</span></a></span></span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">OccSet
forall a. UniqSet a
</span><a href="GHC.Types.Unique.Set.html#emptyUniqSet"><span class="hs-identifier hs-var">emptyUniqSet</span></a></span><span>
</span><span id="line-455"></span><span id="unitOccSet"><span class="annot"><span class="annottext">unitOccSet :: OccName -&gt; OccSet
</span><a href="GHC.Types.Name.Occurrence.html#unitOccSet"><span class="hs-identifier hs-var hs-var">unitOccSet</span></a></span></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">OccName -&gt; OccSet
forall a. Uniquable a =&gt; a -&gt; UniqSet a
</span><a href="GHC.Types.Unique.Set.html#unitUniqSet"><span class="hs-identifier hs-var">unitUniqSet</span></a></span><span>
</span><span id="line-456"></span><span id="mkOccSet"><span class="annot"><span class="annottext">mkOccSet :: [OccName] -&gt; OccSet
</span><a href="GHC.Types.Name.Occurrence.html#mkOccSet"><span class="hs-identifier hs-var hs-var">mkOccSet</span></a></span></span><span>          </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">[OccName] -&gt; OccSet
forall a. Uniquable a =&gt; [a] -&gt; UniqSet a
</span><a href="GHC.Types.Unique.Set.html#mkUniqSet"><span class="hs-identifier hs-var">mkUniqSet</span></a></span><span>
</span><span id="line-457"></span><span id="extendOccSet"><span class="annot"><span class="annottext">extendOccSet :: OccSet -&gt; OccName -&gt; OccSet
</span><a href="GHC.Types.Name.Occurrence.html#extendOccSet"><span class="hs-identifier hs-var hs-var">extendOccSet</span></a></span></span><span>      </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">OccSet -&gt; OccName -&gt; OccSet
forall a. Uniquable a =&gt; UniqSet a -&gt; a -&gt; UniqSet a
</span><a href="GHC.Types.Unique.Set.html#addOneToUniqSet"><span class="hs-identifier hs-var">addOneToUniqSet</span></a></span><span>
</span><span id="line-458"></span><span id="extendOccSetList"><span class="annot"><span class="annottext">extendOccSetList :: OccSet -&gt; [OccName] -&gt; OccSet
</span><a href="GHC.Types.Name.Occurrence.html#extendOccSetList"><span class="hs-identifier hs-var hs-var">extendOccSetList</span></a></span></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">OccSet -&gt; [OccName] -&gt; OccSet
forall a. Uniquable a =&gt; UniqSet a -&gt; [a] -&gt; UniqSet a
</span><a href="GHC.Types.Unique.Set.html#addListToUniqSet"><span class="hs-identifier hs-var">addListToUniqSet</span></a></span><span>
</span><span id="line-459"></span><span id="unionOccSets"><span class="annot"><span class="annottext">unionOccSets :: OccSet -&gt; OccSet -&gt; OccSet
</span><a href="GHC.Types.Name.Occurrence.html#unionOccSets"><span class="hs-identifier hs-var hs-var">unionOccSets</span></a></span></span><span>      </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">OccSet -&gt; OccSet -&gt; OccSet
forall a. UniqSet a -&gt; UniqSet a -&gt; UniqSet a
</span><a href="GHC.Types.Unique.Set.html#unionUniqSets"><span class="hs-identifier hs-var">unionUniqSets</span></a></span><span>
</span><span id="line-460"></span><span id="unionManyOccSets"><span class="annot"><span class="annottext">unionManyOccSets :: [OccSet] -&gt; OccSet
</span><a href="GHC.Types.Name.Occurrence.html#unionManyOccSets"><span class="hs-identifier hs-var hs-var">unionManyOccSets</span></a></span></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">[OccSet] -&gt; OccSet
forall a. [UniqSet a] -&gt; UniqSet a
</span><a href="GHC.Types.Unique.Set.html#unionManyUniqSets"><span class="hs-identifier hs-var">unionManyUniqSets</span></a></span><span>
</span><span id="line-461"></span><span id="minusOccSet"><span class="annot"><span class="annottext">minusOccSet :: OccSet -&gt; OccSet -&gt; OccSet
</span><a href="GHC.Types.Name.Occurrence.html#minusOccSet"><span class="hs-identifier hs-var hs-var">minusOccSet</span></a></span></span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">OccSet -&gt; OccSet -&gt; OccSet
forall a. UniqSet a -&gt; UniqSet a -&gt; UniqSet a
</span><a href="GHC.Types.Unique.Set.html#minusUniqSet"><span class="hs-identifier hs-var">minusUniqSet</span></a></span><span>
</span><span id="line-462"></span><span id="elemOccSet"><span class="annot"><span class="annottext">elemOccSet :: OccName -&gt; OccSet -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#elemOccSet"><span class="hs-identifier hs-var hs-var">elemOccSet</span></a></span></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">OccName -&gt; OccSet -&gt; Bool
forall a. Uniquable a =&gt; a -&gt; UniqSet a -&gt; Bool
</span><a href="GHC.Types.Unique.Set.html#elementOfUniqSet"><span class="hs-identifier hs-var">elementOfUniqSet</span></a></span><span>
</span><span id="line-463"></span><span id="isEmptyOccSet"><span class="annot"><span class="annottext">isEmptyOccSet :: OccSet -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#isEmptyOccSet"><span class="hs-identifier hs-var hs-var">isEmptyOccSet</span></a></span></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">OccSet -&gt; Bool
forall a. UniqSet a -&gt; Bool
</span><a href="GHC.Types.Unique.Set.html#isEmptyUniqSet"><span class="hs-identifier hs-var">isEmptyUniqSet</span></a></span><span>
</span><span id="line-464"></span><span id="intersectOccSet"><span class="annot"><span class="annottext">intersectOccSet :: OccSet -&gt; OccSet -&gt; OccSet
</span><a href="GHC.Types.Name.Occurrence.html#intersectOccSet"><span class="hs-identifier hs-var hs-var">intersectOccSet</span></a></span></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">OccSet -&gt; OccSet -&gt; OccSet
forall a. UniqSet a -&gt; UniqSet a -&gt; UniqSet a
</span><a href="GHC.Types.Unique.Set.html#intersectUniqSets"><span class="hs-identifier hs-var">intersectUniqSets</span></a></span><span>
</span><span id="line-465"></span><span id="filterOccSet"><span class="annot"><span class="annottext">filterOccSet :: (OccName -&gt; Bool) -&gt; OccSet -&gt; OccSet
</span><a href="GHC.Types.Name.Occurrence.html#filterOccSet"><span class="hs-identifier hs-var hs-var">filterOccSet</span></a></span></span><span>      </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(OccName -&gt; Bool) -&gt; OccSet -&gt; OccSet
forall a. (a -&gt; Bool) -&gt; UniqSet a -&gt; UniqSet a
</span><a href="GHC.Types.Unique.Set.html#filterUniqSet"><span class="hs-identifier hs-var">filterUniqSet</span></a></span><span>
</span><span id="line-466"></span><span>
</span><span id="line-467"></span><span class="hs-comment">{-
************************************************************************
*                                                                      *
\subsection{Predicates and taking them apart}
*                                                                      *
************************************************************************
-}</span><span>
</span><span id="line-474"></span><span>
</span><span id="line-475"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#occNameString"><span class="hs-identifier hs-type">occNameString</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>
</span><span id="line-476"></span><span id="occNameString"><span class="annot"><span class="annottext">occNameString :: OccName -&gt; String
</span><a href="GHC.Types.Name.Occurrence.html#occNameString"><span class="hs-identifier hs-var hs-var">occNameString</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><span class="hs-identifier">_</span></span><span> </span><span id="local-6989586621680804451"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804451"><span class="hs-identifier hs-var">s</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FastString -&gt; String
</span><a href="GHC.Data.FastString.html#unpackFS"><span class="hs-identifier hs-var">unpackFS</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804451"><span class="hs-identifier hs-var">s</span></a></span><span>
</span><span id="line-477"></span><span>
</span><span id="line-478"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#setOccNameSpace"><span class="hs-identifier hs-type">setOccNameSpace</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>
</span><span id="line-479"></span><span id="setOccNameSpace"><span class="annot"><span class="annottext">setOccNameSpace :: NameSpace -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#setOccNameSpace"><span class="hs-identifier hs-var hs-var">setOccNameSpace</span></a></span></span><span> </span><span id="local-6989586621680804450"><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804450"><span class="hs-identifier hs-var">sp</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><span class="hs-identifier">_</span></span><span> </span><span id="local-6989586621680804449"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804449"><span class="hs-identifier hs-var">occ</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-var">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804450"><span class="hs-identifier hs-var">sp</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804449"><span class="hs-identifier hs-var">occ</span></a></span><span>
</span><span id="line-480"></span><span>
</span><span id="line-481"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isVarOcc"><span class="hs-identifier hs-type">isVarOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isTvOcc"><span class="hs-identifier hs-type">isTvOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isTcOcc"><span class="hs-identifier hs-type">isTcOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isDataOcc"><span class="hs-identifier hs-type">isDataOcc</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-482"></span><span>
</span><span id="line-483"></span><span id="isVarOcc"><span class="annot"><span class="annottext">isVarOcc :: OccName -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#isVarOcc"><span class="hs-identifier hs-var hs-var">isVarOcc</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#VarName"><span class="hs-identifier hs-var">VarName</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>
</span><span id="line-484"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isVarOcc"><span class="hs-identifier hs-var">isVarOcc</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><span class="hs-identifier">_</span></span><span>                   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span>
</span><span id="line-485"></span><span>
</span><span id="line-486"></span><span id="isTvOcc"><span class="annot"><span class="annottext">isTvOcc :: OccName -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#isTvOcc"><span class="hs-identifier hs-var hs-var">isTvOcc</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TvName"><span class="hs-identifier hs-var">TvName</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>
</span><span id="line-487"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isTvOcc"><span class="hs-identifier hs-var">isTvOcc</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><span class="hs-identifier">_</span></span><span>                  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span>
</span><span id="line-488"></span><span>
</span><span id="line-489"></span><span id="isTcOcc"><span class="annot"><span class="annottext">isTcOcc :: OccName -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#isTcOcc"><span class="hs-identifier hs-var hs-var">isTcOcc</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TcClsName"><span class="hs-identifier hs-var">TcClsName</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>
</span><span id="line-490"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isTcOcc"><span class="hs-identifier hs-var">isTcOcc</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><span class="hs-identifier">_</span></span><span>                     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span>
</span><span id="line-491"></span><span>
</span><span id="line-492"></span><span class="hs-comment">-- | /Value/ 'OccNames's are those that are either in</span><span>
</span><span id="line-493"></span><span class="hs-comment">-- the variable or data constructor namespaces</span><span>
</span><span id="line-494"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isValOcc"><span class="hs-identifier hs-type">isValOcc</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-495"></span><span id="isValOcc"><span class="annot"><span class="annottext">isValOcc :: OccName -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#isValOcc"><span class="hs-identifier hs-var hs-var">isValOcc</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#VarName"><span class="hs-identifier hs-var">VarName</span></a></span><span>  </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>
</span><span id="line-496"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isValOcc"><span class="hs-identifier hs-var">isValOcc</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#DataName"><span class="hs-identifier hs-var">DataName</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>
</span><span id="line-497"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isValOcc"><span class="hs-identifier hs-var">isValOcc</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><span class="hs-identifier">_</span></span><span>                    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span>
</span><span id="line-498"></span><span>
</span><span id="line-499"></span><span id="isDataOcc"><span class="annot"><span class="annottext">isDataOcc :: OccName -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#isDataOcc"><span class="hs-identifier hs-var hs-var">isDataOcc</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#DataName"><span class="hs-identifier hs-var">DataName</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>
</span><span id="line-500"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isDataOcc"><span class="hs-identifier hs-var">isDataOcc</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><span class="hs-identifier">_</span></span><span>                    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span>
</span><span id="line-501"></span><span>
</span><span id="line-502"></span><span class="hs-comment">-- | Test if the 'OccName' is a data constructor that starts with</span><span>
</span><span id="line-503"></span><span class="hs-comment">-- a symbol (e.g. @:@, or @[]@)</span><span>
</span><span id="line-504"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isDataSymOcc"><span class="hs-identifier hs-type">isDataSymOcc</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-505"></span><span id="isDataSymOcc"><span class="annot"><span class="annottext">isDataSymOcc :: OccName -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#isDataSymOcc"><span class="hs-identifier hs-var hs-var">isDataSymOcc</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#DataName"><span class="hs-identifier hs-var">DataName</span></a></span><span> </span><span id="local-6989586621680804448"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804448"><span class="hs-identifier hs-var">s</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FastString -&gt; Bool
</span><a href="GHC.Utils.Lexeme.html#isLexConSym"><span class="hs-identifier hs-var">isLexConSym</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804448"><span class="hs-identifier hs-var">s</span></a></span><span>
</span><span id="line-506"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isDataSymOcc"><span class="hs-identifier hs-var">isDataSymOcc</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><span class="hs-identifier">_</span></span><span>                    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span>
</span><span id="line-507"></span><span class="hs-comment">-- Pretty inefficient!</span><span>
</span><span id="line-508"></span><span>
</span><span id="line-509"></span><span class="hs-comment">-- | Test if the 'OccName' is that for any operator (whether</span><span>
</span><span id="line-510"></span><span class="hs-comment">-- it is a data constructor or variable or whatever)</span><span>
</span><span id="line-511"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isSymOcc"><span class="hs-identifier hs-type">isSymOcc</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-512"></span><span id="isSymOcc"><span class="annot"><span class="annottext">isSymOcc :: OccName -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#isSymOcc"><span class="hs-identifier hs-var hs-var">isSymOcc</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#DataName"><span class="hs-identifier hs-var">DataName</span></a></span><span> </span><span id="local-6989586621680804446"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804446"><span class="hs-identifier hs-var">s</span></a></span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FastString -&gt; Bool
</span><a href="GHC.Utils.Lexeme.html#isLexConSym"><span class="hs-identifier hs-var">isLexConSym</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804446"><span class="hs-identifier hs-var">s</span></a></span><span>
</span><span id="line-513"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isSymOcc"><span class="hs-identifier hs-var">isSymOcc</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TcClsName"><span class="hs-identifier hs-var">TcClsName</span></a></span><span> </span><span id="local-6989586621680804445"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804445"><span class="hs-identifier hs-var">s</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FastString -&gt; Bool
</span><a href="GHC.Utils.Lexeme.html#isLexSym"><span class="hs-identifier hs-var">isLexSym</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804445"><span class="hs-identifier hs-var">s</span></a></span><span>
</span><span id="line-514"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isSymOcc"><span class="hs-identifier hs-var">isSymOcc</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#VarName"><span class="hs-identifier hs-var">VarName</span></a></span><span> </span><span id="local-6989586621680804443"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804443"><span class="hs-identifier hs-var">s</span></a></span></span><span class="hs-special">)</span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FastString -&gt; Bool
</span><a href="GHC.Utils.Lexeme.html#isLexSym"><span class="hs-identifier hs-var">isLexSym</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804443"><span class="hs-identifier hs-var">s</span></a></span><span>
</span><span id="line-515"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isSymOcc"><span class="hs-identifier hs-var">isSymOcc</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TvName"><span class="hs-identifier hs-var">TvName</span></a></span><span> </span><span id="local-6989586621680804442"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804442"><span class="hs-identifier hs-var">s</span></a></span></span><span class="hs-special">)</span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FastString -&gt; Bool
</span><a href="GHC.Utils.Lexeme.html#isLexSym"><span class="hs-identifier hs-var">isLexSym</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804442"><span class="hs-identifier hs-var">s</span></a></span><span>
</span><span id="line-516"></span><span class="hs-comment">-- Pretty inefficient!</span><span>
</span><span id="line-517"></span><span>
</span><span id="line-518"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#parenSymOcc"><span class="hs-identifier hs-type">parenSymOcc</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html#SDoc"><span class="hs-identifier hs-type">SDoc</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html#SDoc"><span class="hs-identifier hs-type">SDoc</span></a></span><span>
</span><span id="line-519"></span><span class="hs-comment">-- ^ Wrap parens around an operator</span><span>
</span><span id="line-520"></span><span id="parenSymOcc"><span class="annot"><span class="annottext">parenSymOcc :: OccName -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Types.Name.Occurrence.html#parenSymOcc"><span class="hs-identifier hs-var hs-var">parenSymOcc</span></a></span></span><span> </span><span id="local-6989586621680804441"><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804441"><span class="hs-identifier hs-var">occ</span></a></span></span><span> </span><span id="local-6989586621680804440"><span class="annot"><span class="annottext">SDoc
</span><a href="#local-6989586621680804440"><span class="hs-identifier hs-var">doc</span></a></span></span><span> </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">OccName -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#isSymOcc"><span class="hs-identifier hs-var">isSymOcc</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804441"><span class="hs-identifier hs-var">occ</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#parens"><span class="hs-identifier hs-var">parens</span></a></span><span> </span><span class="annot"><span class="annottext">SDoc
</span><a href="#local-6989586621680804440"><span class="hs-identifier hs-var">doc</span></a></span><span>
</span><span id="line-521"></span><span>                    </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="../../base/src/GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">SDoc
</span><a href="#local-6989586621680804440"><span class="hs-identifier hs-var">doc</span></a></span><span>
</span><span id="line-522"></span><span>
</span><span id="line-523"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#startsWithUnderscore"><span class="hs-identifier hs-type">startsWithUnderscore</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-524"></span><span class="hs-comment">-- ^ Haskell 98 encourages compilers to suppress warnings about unused</span><span>
</span><span id="line-525"></span><span class="hs-comment">-- names in a pattern if they start with @_@: this implements that test</span><span>
</span><span id="line-526"></span><span id="startsWithUnderscore"><span class="annot"><span class="annottext">startsWithUnderscore :: OccName -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#startsWithUnderscore"><span class="hs-identifier hs-var hs-var">startsWithUnderscore</span></a></span></span><span> </span><span id="local-6989586621680804438"><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804438"><span class="hs-identifier hs-var">occ</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FastString -&gt; Char
</span><a href="GHC.Data.FastString.html#headFS"><span class="hs-identifier hs-var">headFS</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">OccName -&gt; FastString
</span><a href="GHC.Types.Name.Occurrence.html#occNameFS"><span class="hs-identifier hs-var hs-var">occNameFS</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804438"><span class="hs-identifier hs-var">occ</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Char -&gt; Char -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">==</span></span><span> </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'_'</span></span><span>
</span><span id="line-527"></span><span>
</span><span id="line-528"></span><span class="hs-comment">{-
************************************************************************
*                                                                      *
\subsection{Making system names}
*                                                                      *
************************************************************************

Here's our convention for splitting up the interface file name space:

   d...         dictionary identifiers
                (local variables, so no name-clash worries)

All of these other OccNames contain a mixture of alphabetic
and symbolic characters, and hence cannot possibly clash with
a user-written type or function name

   $f...        Dict-fun identifiers (from inst decls)
   $dmop        Default method for 'op'
   $pnC         n'th superclass selector for class C
   $wf          Worker for function 'f'
   $sf..        Specialised version of f
   D:C          Data constructor for dictionary for class C
   NTCo:T       Coercion connecting newtype T with its representation type
   TFCo:R       Coercion connecting a data family to its representation type R

In encoded form these appear as Zdfxxx etc

        :...            keywords (export:, letrec: etc.)
--- I THINK THIS IS WRONG!

This knowledge is encoded in the following functions.

@mk_deriv@ generates an @OccName@ from the prefix and a string.
NB: The string must already be encoded!
-}</span><span>
</span><span id="line-563"></span><span>
</span><span id="line-564"></span><span class="hs-comment">-- | Build an 'OccName' derived from another 'OccName'.</span><span>
</span><span id="line-565"></span><span class="hs-comment">--</span><span>
</span><span id="line-566"></span><span class="hs-comment">-- Note that the pieces of the name are passed in as a @[FastString]@ so that</span><span>
</span><span id="line-567"></span><span class="hs-comment">-- the whole name can be constructed with a single 'concatFS', minimizing</span><span>
</span><span id="line-568"></span><span class="hs-comment">-- unnecessary intermediate allocations.</span><span>
</span><span id="line-569"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mk_deriv"><span class="hs-identifier hs-type">mk_deriv</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span><span>
</span><span id="line-570"></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span>      </span><span class="hs-comment">-- ^ A prefix which distinguishes one sort of</span><span>
</span><span id="line-571"></span><span>                            </span><span class="hs-comment">-- derived name from another</span><span>
</span><span id="line-572"></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span class="hs-special">]</span><span>    </span><span class="hs-comment">-- ^ The name we are deriving from in pieces which</span><span>
</span><span id="line-573"></span><span>                            </span><span class="hs-comment">-- will be concatenated.</span><span>
</span><span id="line-574"></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>
</span><span id="line-575"></span><span id="mk_deriv"><span class="annot"><span class="annottext">mk_deriv :: NameSpace -&gt; FastString -&gt; [FastString] -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_deriv"><span class="hs-identifier hs-var hs-var">mk_deriv</span></a></span></span><span> </span><span id="local-6989586621680804435"><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804435"><span class="hs-identifier hs-var">occ_sp</span></a></span></span><span> </span><span id="local-6989586621680804434"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804434"><span class="hs-identifier hs-var">sys_prefix</span></a></span></span><span> </span><span id="local-6989586621680804433"><span class="annot"><span class="annottext">[FastString]
</span><a href="#local-6989586621680804433"><span class="hs-identifier hs-var">str</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-576"></span><span>    </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkOccNameFS"><span class="hs-identifier hs-var">mkOccNameFS</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804435"><span class="hs-identifier hs-var">occ_sp</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">[FastString] -&gt; FastString
</span><a href="GHC.Data.FastString.html#concatFS"><span class="hs-identifier hs-var">concatFS</span></a></span><span> </span><span class="annot"><span class="annottext">([FastString] -&gt; FastString) -&gt; [FastString] -&gt; FastString
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804434"><span class="hs-identifier hs-var">sys_prefix</span></a></span><span> </span><span class="annot"><span class="annottext">FastString -&gt; [FastString] -&gt; [FastString]
forall a. a -&gt; [a] -&gt; [a]
</span><span class="hs-glyph hs-var">:</span></span><span> </span><span class="annot"><span class="annottext">[FastString]
</span><a href="#local-6989586621680804433"><span class="hs-identifier hs-var">str</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-577"></span><span>
</span><span id="line-578"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isDerivedOccName"><span class="hs-identifier hs-type">isDerivedOccName</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-579"></span><span class="hs-comment">-- ^ Test for definitions internally generated by GHC.  This predicate</span><span>
</span><span id="line-580"></span><span class="hs-comment">-- is used to suppress printing of internal definitions in some debug prints</span><span>
</span><span id="line-581"></span><span id="isDerivedOccName"><span class="annot"><span class="annottext">isDerivedOccName :: OccName -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#isDerivedOccName"><span class="hs-identifier hs-var hs-var">isDerivedOccName</span></a></span></span><span> </span><span id="local-6989586621680804431"><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804431"><span class="hs-identifier hs-var">occ</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-582"></span><span>   </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">OccName -&gt; String
</span><a href="GHC.Types.Name.Occurrence.html#occNameString"><span class="hs-identifier hs-var">occNameString</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804431"><span class="hs-identifier hs-var">occ</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-583"></span><span>     </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'$'</span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span id="local-6989586621680804430"><span class="annot"><span class="annottext">Char
</span><a href="#local-6989586621680804430"><span class="hs-identifier hs-var">c</span></a></span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span class="annot"><span class="annottext">String
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Char -&gt; Bool
</span><a href="../../base/src/GHC.Unicode.html#isAlphaNum"><span class="hs-identifier hs-var">isAlphaNum</span></a></span><span> </span><span class="annot"><span class="annottext">Char
</span><a href="#local-6989586621680804430"><span class="hs-identifier hs-var">c</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>   </span><span class="hs-comment">-- E.g.  $wfoo</span><span>
</span><span id="line-584"></span><span>     </span><span id="local-6989586621680804429"><span class="annot"><span class="annottext">Char
</span><a href="#local-6989586621680804429"><span class="hs-identifier hs-var">c</span></a></span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">':'</span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span class="annot"><span class="annottext">String
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Char -&gt; Bool
</span><a href="../../base/src/GHC.Unicode.html#isAlphaNum"><span class="hs-identifier hs-var">isAlphaNum</span></a></span><span> </span><span class="annot"><span class="annottext">Char
</span><a href="#local-6989586621680804429"><span class="hs-identifier hs-var">c</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>   </span><span class="hs-comment">-- E.g.  N:blah   newtype coercions</span><span>
</span><span id="line-585"></span><span>     </span><span id="local-6989586621680804428"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680804428"><span class="hs-identifier hs-var">_other</span></a></span></span><span>                 </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span>
</span><span id="line-586"></span><span>
</span><span id="line-587"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isDefaultMethodOcc"><span class="hs-identifier hs-type">isDefaultMethodOcc</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-588"></span><span id="isDefaultMethodOcc"><span class="annot"><span class="annottext">isDefaultMethodOcc :: OccName -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#isDefaultMethodOcc"><span class="hs-identifier hs-var hs-var">isDefaultMethodOcc</span></a></span></span><span> </span><span id="local-6989586621680804427"><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804427"><span class="hs-identifier hs-var">occ</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-589"></span><span>   </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">OccName -&gt; String
</span><a href="GHC.Types.Name.Occurrence.html#occNameString"><span class="hs-identifier hs-var">occNameString</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804427"><span class="hs-identifier hs-var">occ</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-590"></span><span>     </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'$'</span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'d'</span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'m'</span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span class="annot"><span class="annottext">String
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>
</span><span id="line-591"></span><span>     </span><span class="annot"><span class="annottext">String
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span>
</span><span id="line-592"></span><span>
</span><span id="line-593"></span><span class="hs-comment">-- | Is an 'OccName' one of a Typeable @TyCon@ or @Module@ binding?</span><span>
</span><span id="line-594"></span><span class="hs-comment">-- This is needed as these bindings are renamed differently.</span><span>
</span><span id="line-595"></span><span class="hs-comment">-- See Note [Grand plan for Typeable] in &quot;GHC.Tc.Instance.Typeable&quot;.</span><span>
</span><span id="line-596"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#isTypeableBindOcc"><span class="hs-identifier hs-type">isTypeableBindOcc</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-597"></span><span id="isTypeableBindOcc"><span class="annot"><span class="annottext">isTypeableBindOcc :: OccName -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#isTypeableBindOcc"><span class="hs-identifier hs-var hs-var">isTypeableBindOcc</span></a></span></span><span> </span><span id="local-6989586621680804426"><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804426"><span class="hs-identifier hs-var">occ</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-598"></span><span>   </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">OccName -&gt; String
</span><a href="GHC.Types.Name.Occurrence.html#occNameString"><span class="hs-identifier hs-var">occNameString</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804426"><span class="hs-identifier hs-var">occ</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-599"></span><span>     </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'$'</span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'t'</span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'c'</span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span class="annot"><span class="annottext">String
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>  </span><span class="hs-comment">-- mkTyConRepOcc</span><span>
</span><span id="line-600"></span><span>     </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'$'</span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'t'</span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'r'</span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span class="annot"><span class="annottext">String
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>  </span><span class="hs-comment">-- Module binding</span><span>
</span><span id="line-601"></span><span>     </span><span class="annot"><span class="annottext">String
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span>
</span><span id="line-602"></span><span>
</span><span id="line-603"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkDataConWrapperOcc"><span class="hs-identifier hs-type">mkDataConWrapperOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkWorkerOcc"><span class="hs-identifier hs-type">mkWorkerOcc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-604"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkMatcherOcc"><span class="hs-identifier hs-type">mkMatcherOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkBuilderOcc"><span class="hs-identifier hs-type">mkBuilderOcc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-605"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkDefaultMethodOcc"><span class="hs-identifier hs-type">mkDefaultMethodOcc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-606"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkClassDataConOcc"><span class="hs-identifier hs-type">mkClassDataConOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkDictOcc"><span class="hs-identifier hs-type">mkDictOcc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-607"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkIPOcc"><span class="hs-identifier hs-type">mkIPOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkSpecOcc"><span class="hs-identifier hs-type">mkSpecOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkForeignExportOcc"><span class="hs-identifier hs-type">mkForeignExportOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkRepEqOcc"><span class="hs-identifier hs-type">mkRepEqOcc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-608"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkGenR"><span class="hs-identifier hs-type">mkGenR</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkGen1R"><span class="hs-identifier hs-type">mkGen1R</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-609"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkDataConWorkerOcc"><span class="hs-identifier hs-type">mkDataConWorkerOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkNewTyCoOcc"><span class="hs-identifier hs-type">mkNewTyCoOcc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-610"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkInstTyCoOcc"><span class="hs-identifier hs-type">mkInstTyCoOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkEqPredCoOcc"><span class="hs-identifier hs-type">mkEqPredCoOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkClassOpAuxOcc"><span class="hs-identifier hs-type">mkClassOpAuxOcc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-611"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkCon2TagOcc"><span class="hs-identifier hs-type">mkCon2TagOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkTag2ConOcc"><span class="hs-identifier hs-type">mkTag2ConOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkMaxTagOcc"><span class="hs-identifier hs-type">mkMaxTagOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkDataTOcc"><span class="hs-identifier hs-type">mkDataTOcc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkDataCOcc"><span class="hs-identifier hs-type">mkDataCOcc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-612"></span><span>        </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkTyConRepOcc"><span class="hs-identifier hs-type">mkTyConRepOcc</span></a></span><span>
</span><span id="line-613"></span><span>   </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>
</span><span id="line-614"></span><span>
</span><span id="line-615"></span><span class="hs-comment">-- These derived variables have a prefix that no Haskell value could have</span><span>
</span><span id="line-616"></span><span id="mkDataConWrapperOcc"><span class="annot"><span class="annottext">mkDataConWrapperOcc :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkDataConWrapperOcc"><span class="hs-identifier hs-var hs-var">mkDataConWrapperOcc</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var">mk_simple_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var">varName</span></a></span><span>  </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;$W&quot;</span></span><span>
</span><span id="line-617"></span><span id="mkWorkerOcc"><span class="annot"><span class="annottext">mkWorkerOcc :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkWorkerOcc"><span class="hs-identifier hs-var hs-var">mkWorkerOcc</span></a></span></span><span>         </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var">mk_simple_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var">varName</span></a></span><span>  </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;$w&quot;</span></span><span>
</span><span id="line-618"></span><span id="mkMatcherOcc"><span class="annot"><span class="annottext">mkMatcherOcc :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkMatcherOcc"><span class="hs-identifier hs-var hs-var">mkMatcherOcc</span></a></span></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var">mk_simple_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var">varName</span></a></span><span>  </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;$m&quot;</span></span><span>
</span><span id="line-619"></span><span id="mkBuilderOcc"><span class="annot"><span class="annottext">mkBuilderOcc :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkBuilderOcc"><span class="hs-identifier hs-var hs-var">mkBuilderOcc</span></a></span></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var">mk_simple_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var">varName</span></a></span><span>  </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;$b&quot;</span></span><span>
</span><span id="line-620"></span><span id="mkDefaultMethodOcc"><span class="annot"><span class="annottext">mkDefaultMethodOcc :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkDefaultMethodOcc"><span class="hs-identifier hs-var hs-var">mkDefaultMethodOcc</span></a></span></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var">mk_simple_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var">varName</span></a></span><span>  </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;$dm&quot;</span></span><span>
</span><span id="line-621"></span><span id="mkClassOpAuxOcc"><span class="annot"><span class="annottext">mkClassOpAuxOcc :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkClassOpAuxOcc"><span class="hs-identifier hs-var hs-var">mkClassOpAuxOcc</span></a></span></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var">mk_simple_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var">varName</span></a></span><span>  </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;$c&quot;</span></span><span>
</span><span id="line-622"></span><span id="mkDictOcc"><span class="annot"><span class="annottext">mkDictOcc :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkDictOcc"><span class="hs-identifier hs-var hs-var">mkDictOcc</span></a></span></span><span>           </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var">mk_simple_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var">varName</span></a></span><span>  </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;$d&quot;</span></span><span>
</span><span id="line-623"></span><span id="mkIPOcc"><span class="annot"><span class="annottext">mkIPOcc :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkIPOcc"><span class="hs-identifier hs-var hs-var">mkIPOcc</span></a></span></span><span>             </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var">mk_simple_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var">varName</span></a></span><span>  </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;$i&quot;</span></span><span>
</span><span id="line-624"></span><span id="mkSpecOcc"><span class="annot"><span class="annottext">mkSpecOcc :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkSpecOcc"><span class="hs-identifier hs-var hs-var">mkSpecOcc</span></a></span></span><span>           </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var">mk_simple_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var">varName</span></a></span><span>  </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;$s&quot;</span></span><span>
</span><span id="line-625"></span><span id="mkForeignExportOcc"><span class="annot"><span class="annottext">mkForeignExportOcc :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkForeignExportOcc"><span class="hs-identifier hs-var hs-var">mkForeignExportOcc</span></a></span></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var">mk_simple_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var">varName</span></a></span><span>  </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;$f&quot;</span></span><span>
</span><span id="line-626"></span><span id="mkRepEqOcc"><span class="annot"><span class="annottext">mkRepEqOcc :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkRepEqOcc"><span class="hs-identifier hs-var hs-var">mkRepEqOcc</span></a></span></span><span>          </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var">mk_simple_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#tvName"><span class="hs-identifier hs-var">tvName</span></a></span><span>   </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;$r&quot;</span></span><span>   </span><span class="hs-comment">-- In RULES involving Coercible</span><span>
</span><span id="line-627"></span><span id="mkClassDataConOcc"><span class="annot"><span class="annottext">mkClassDataConOcc :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkClassDataConOcc"><span class="hs-identifier hs-var hs-var">mkClassDataConOcc</span></a></span></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var">mk_simple_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#dataName"><span class="hs-identifier hs-var">dataName</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;C:&quot;</span></span><span>   </span><span class="hs-comment">-- Data con for a class</span><span>
</span><span id="line-628"></span><span id="mkNewTyCoOcc"><span class="annot"><span class="annottext">mkNewTyCoOcc :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkNewTyCoOcc"><span class="hs-identifier hs-var hs-var">mkNewTyCoOcc</span></a></span></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var">mk_simple_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#tcName"><span class="hs-identifier hs-var">tcName</span></a></span><span>   </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;N:&quot;</span></span><span>   </span><span class="hs-comment">-- Coercion for newtypes</span><span>
</span><span id="line-629"></span><span id="mkInstTyCoOcc"><span class="annot"><span class="annottext">mkInstTyCoOcc :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkInstTyCoOcc"><span class="hs-identifier hs-var hs-var">mkInstTyCoOcc</span></a></span></span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var">mk_simple_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#tcName"><span class="hs-identifier hs-var">tcName</span></a></span><span>   </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;D:&quot;</span></span><span>   </span><span class="hs-comment">-- Coercion for type functions</span><span>
</span><span id="line-630"></span><span id="mkEqPredCoOcc"><span class="annot"><span class="annottext">mkEqPredCoOcc :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkEqPredCoOcc"><span class="hs-identifier hs-var hs-var">mkEqPredCoOcc</span></a></span></span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var">mk_simple_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#tcName"><span class="hs-identifier hs-var">tcName</span></a></span><span>   </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;$co&quot;</span></span><span>
</span><span id="line-631"></span><span>
</span><span id="line-632"></span><span class="hs-comment">-- Used in derived instances for the names of auxilary bindings.</span><span>
</span><span id="line-633"></span><span class="hs-comment">-- See Note [Auxiliary binders] in GHC.Tc.Deriv.Generate.</span><span>
</span><span id="line-634"></span><span id="mkCon2TagOcc"><span class="annot"><span class="annottext">mkCon2TagOcc :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkCon2TagOcc"><span class="hs-identifier hs-var hs-var">mkCon2TagOcc</span></a></span></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var">mk_simple_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var">varName</span></a></span><span>  </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;$con2tag_&quot;</span></span><span>
</span><span id="line-635"></span><span id="mkTag2ConOcc"><span class="annot"><span class="annottext">mkTag2ConOcc :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkTag2ConOcc"><span class="hs-identifier hs-var hs-var">mkTag2ConOcc</span></a></span></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var">mk_simple_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var">varName</span></a></span><span>  </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;$tag2con_&quot;</span></span><span>
</span><span id="line-636"></span><span id="mkMaxTagOcc"><span class="annot"><span class="annottext">mkMaxTagOcc :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkMaxTagOcc"><span class="hs-identifier hs-var hs-var">mkMaxTagOcc</span></a></span></span><span>         </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var">mk_simple_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var">varName</span></a></span><span>  </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;$maxtag_&quot;</span></span><span>
</span><span id="line-637"></span><span id="mkDataTOcc"><span class="annot"><span class="annottext">mkDataTOcc :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkDataTOcc"><span class="hs-identifier hs-var hs-var">mkDataTOcc</span></a></span></span><span>          </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var">mk_simple_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var">varName</span></a></span><span>  </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;$t&quot;</span></span><span>
</span><span id="line-638"></span><span id="mkDataCOcc"><span class="annot"><span class="annottext">mkDataCOcc :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkDataCOcc"><span class="hs-identifier hs-var hs-var">mkDataCOcc</span></a></span></span><span>          </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var">mk_simple_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var">varName</span></a></span><span>  </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;$c&quot;</span></span><span>
</span><span id="line-639"></span><span>
</span><span id="line-640"></span><span class="hs-comment">-- TyConRepName stuff; see Note [Grand plan for Typeable] in GHC.Tc.Instance.Typeable</span><span>
</span><span id="line-641"></span><span id="mkTyConRepOcc"><span class="annot"><span class="annottext">mkTyConRepOcc :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkTyConRepOcc"><span class="hs-identifier hs-var hs-var">mkTyConRepOcc</span></a></span></span><span> </span><span id="local-6989586621680804424"><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804424"><span class="hs-identifier hs-var">occ</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var">mk_simple_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var">varName</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804423"><span class="hs-identifier hs-var">prefix</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804424"><span class="hs-identifier hs-var">occ</span></a></span><span>
</span><span id="line-642"></span><span>  </span><span class="hs-keyword">where</span><span>
</span><span id="line-643"></span><span>    </span><span id="local-6989586621680804423"><span class="annot"><span class="annottext">prefix :: FastString
</span><a href="#local-6989586621680804423"><span class="hs-identifier hs-var hs-var">prefix</span></a></span></span><span> </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">OccName -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#isDataOcc"><span class="hs-identifier hs-var">isDataOcc</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804424"><span class="hs-identifier hs-var">occ</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;$tc'&quot;</span></span><span>
</span><span id="line-644"></span><span>           </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="../../base/src/GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;$tc&quot;</span></span><span>
</span><span id="line-645"></span><span>
</span><span id="line-646"></span><span class="hs-comment">-- Generic deriving mechanism</span><span>
</span><span id="line-647"></span><span id="mkGenR"><span class="annot"><span class="annottext">mkGenR :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkGenR"><span class="hs-identifier hs-var hs-var">mkGenR</span></a></span></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var">mk_simple_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#tcName"><span class="hs-identifier hs-var">tcName</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;Rep_&quot;</span></span><span>
</span><span id="line-648"></span><span id="mkGen1R"><span class="annot"><span class="annottext">mkGen1R :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkGen1R"><span class="hs-identifier hs-var hs-var">mkGen1R</span></a></span></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var">mk_simple_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#tcName"><span class="hs-identifier hs-var">tcName</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;Rep1_&quot;</span></span><span>
</span><span id="line-649"></span><span>
</span><span id="line-650"></span><span class="hs-comment">-- Overloaded record field selectors</span><span>
</span><span id="line-651"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkRecFldSelOcc"><span class="hs-identifier hs-type">mkRecFldSelOcc</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>
</span><span id="line-652"></span><span id="mkRecFldSelOcc"><span class="annot"><span class="annottext">mkRecFldSelOcc :: String -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkRecFldSelOcc"><span class="hs-identifier hs-var hs-var">mkRecFldSelOcc</span></a></span></span><span> </span><span id="local-6989586621680804420"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680804420"><span class="hs-identifier hs-var">s</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; [FastString] -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_deriv"><span class="hs-identifier hs-var">mk_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var">varName</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;$sel&quot;</span></span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">String -&gt; FastString
</span><a href="GHC.Data.FastString.html#fsLit"><span class="hs-identifier hs-var">fsLit</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680804420"><span class="hs-identifier hs-var">s</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-653"></span><span>
</span><span id="line-654"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-type">mk_simple_deriv</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>
</span><span id="line-655"></span><span id="mk_simple_deriv"><span class="annot"><span class="annottext">mk_simple_deriv :: NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var hs-var">mk_simple_deriv</span></a></span></span><span> </span><span id="local-6989586621680804418"><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804418"><span class="hs-identifier hs-var">sp</span></a></span></span><span> </span><span id="local-6989586621680804417"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804417"><span class="hs-identifier hs-var">px</span></a></span></span><span> </span><span id="local-6989586621680804416"><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804416"><span class="hs-identifier hs-var">occ</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; [FastString] -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_deriv"><span class="hs-identifier hs-var">mk_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804418"><span class="hs-identifier hs-var">sp</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804417"><span class="hs-identifier hs-var">px</span></a></span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">OccName -&gt; FastString
</span><a href="GHC.Types.Name.Occurrence.html#occNameFS"><span class="hs-identifier hs-var hs-var">occNameFS</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804416"><span class="hs-identifier hs-var">occ</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-656"></span><span>
</span><span id="line-657"></span><span class="hs-comment">-- Data constructor workers are made by setting the name space</span><span>
</span><span id="line-658"></span><span class="hs-comment">-- of the data constructor OccName (which should be a DataName)</span><span>
</span><span id="line-659"></span><span class="hs-comment">-- to VarName</span><span>
</span><span id="line-660"></span><span id="mkDataConWorkerOcc"><span class="annot"><span class="annottext">mkDataConWorkerOcc :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkDataConWorkerOcc"><span class="hs-identifier hs-var hs-var">mkDataConWorkerOcc</span></a></span></span><span> </span><span id="local-6989586621680804415"><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804415"><span class="hs-identifier hs-var">datacon_occ</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#setOccNameSpace"><span class="hs-identifier hs-var">setOccNameSpace</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var">varName</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804415"><span class="hs-identifier hs-var">datacon_occ</span></a></span><span>
</span><span id="line-661"></span><span>
</span><span id="line-662"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkSuperDictAuxOcc"><span class="hs-identifier hs-type">mkSuperDictAuxOcc</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>
</span><span id="line-663"></span><span id="mkSuperDictAuxOcc"><span class="annot"><span class="annottext">mkSuperDictAuxOcc :: Int -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkSuperDictAuxOcc"><span class="hs-identifier hs-var hs-var">mkSuperDictAuxOcc</span></a></span></span><span> </span><span id="local-6989586621680804414"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680804414"><span class="hs-identifier hs-var">index</span></a></span></span><span> </span><span id="local-6989586621680804413"><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804413"><span class="hs-identifier hs-var">cls_tc_occ</span></a></span></span><span>
</span><span id="line-664"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; [FastString] -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_deriv"><span class="hs-identifier hs-var">mk_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var">varName</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;$cp&quot;</span></span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">String -&gt; FastString
</span><a href="GHC.Data.FastString.html#fsLit"><span class="hs-identifier hs-var">fsLit</span></a></span><span> </span><span class="annot"><span class="annottext">(String -&gt; FastString) -&gt; String -&gt; FastString
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; String
forall a. Show a =&gt; a -&gt; String
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680804414"><span class="hs-identifier hs-var">index</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">OccName -&gt; FastString
</span><a href="GHC.Types.Name.Occurrence.html#occNameFS"><span class="hs-identifier hs-var hs-var">occNameFS</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804413"><span class="hs-identifier hs-var">cls_tc_occ</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-665"></span><span>
</span><span id="line-666"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkSuperDictSelOcc"><span class="hs-identifier hs-type">mkSuperDictSelOcc</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span>        </span><span class="hs-comment">-- ^ Index of superclass, e.g. 3</span><span>
</span><span id="line-667"></span><span>                  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>    </span><span class="hs-comment">-- ^ Class, e.g. @Ord@</span><span>
</span><span id="line-668"></span><span>                  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>    </span><span class="hs-comment">-- ^ Derived 'Occname', e.g. @$p3Ord@</span><span>
</span><span id="line-669"></span><span id="mkSuperDictSelOcc"><span class="annot"><span class="annottext">mkSuperDictSelOcc :: Int -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkSuperDictSelOcc"><span class="hs-identifier hs-var hs-var">mkSuperDictSelOcc</span></a></span></span><span> </span><span id="local-6989586621680804411"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680804411"><span class="hs-identifier hs-var">index</span></a></span></span><span> </span><span id="local-6989586621680804410"><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804410"><span class="hs-identifier hs-var">cls_tc_occ</span></a></span></span><span>
</span><span id="line-670"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; [FastString] -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_deriv"><span class="hs-identifier hs-var">mk_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var">varName</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;$p&quot;</span></span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">String -&gt; FastString
</span><a href="GHC.Data.FastString.html#fsLit"><span class="hs-identifier hs-var">fsLit</span></a></span><span> </span><span class="annot"><span class="annottext">(String -&gt; FastString) -&gt; String -&gt; FastString
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; String
forall a. Show a =&gt; a -&gt; String
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680804411"><span class="hs-identifier hs-var">index</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">OccName -&gt; FastString
</span><a href="GHC.Types.Name.Occurrence.html#occNameFS"><span class="hs-identifier hs-var hs-var">occNameFS</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804410"><span class="hs-identifier hs-var">cls_tc_occ</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-671"></span><span>
</span><span id="line-672"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkLocalOcc"><span class="hs-identifier hs-type">mkLocalOcc</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Unique.html#Unique"><span class="hs-identifier hs-type">Unique</span></a></span><span>            </span><span class="hs-comment">-- ^ Unique to combine with the 'OccName'</span><span>
</span><span id="line-673"></span><span>           </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>           </span><span class="hs-comment">-- ^ Local name, e.g. @sat@</span><span>
</span><span id="line-674"></span><span>           </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>           </span><span class="hs-comment">-- ^ Nice unique version, e.g. @$L23sat@</span><span>
</span><span id="line-675"></span><span id="mkLocalOcc"><span class="annot"><span class="annottext">mkLocalOcc :: Unique -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkLocalOcc"><span class="hs-identifier hs-var hs-var">mkLocalOcc</span></a></span></span><span> </span><span id="local-6989586621680804409"><span class="annot"><span class="annottext">Unique
</span><a href="#local-6989586621680804409"><span class="hs-identifier hs-var">uniq</span></a></span></span><span> </span><span id="local-6989586621680804408"><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804408"><span class="hs-identifier hs-var">occ</span></a></span></span><span>
</span><span id="line-676"></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; [FastString] -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_deriv"><span class="hs-identifier hs-var">mk_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var">varName</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;$L&quot;</span></span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">String -&gt; FastString
</span><a href="GHC.Data.FastString.html#fsLit"><span class="hs-identifier hs-var">fsLit</span></a></span><span> </span><span class="annot"><span class="annottext">(String -&gt; FastString) -&gt; String -&gt; FastString
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Unique -&gt; String
forall a. Show a =&gt; a -&gt; String
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">Unique
</span><a href="#local-6989586621680804409"><span class="hs-identifier hs-var">uniq</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">OccName -&gt; FastString
</span><a href="GHC.Types.Name.Occurrence.html#occNameFS"><span class="hs-identifier hs-var hs-var">occNameFS</span></a></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804408"><span class="hs-identifier hs-var">occ</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-677"></span><span>        </span><span class="hs-comment">-- The Unique might print with characters</span><span>
</span><span id="line-678"></span><span>        </span><span class="hs-comment">-- that need encoding (e.g. 'z'!)</span><span>
</span><span id="line-679"></span><span>
</span><span id="line-680"></span><span class="hs-comment">-- | Derive a name for the representation type constructor of a</span><span>
</span><span id="line-681"></span><span class="hs-comment">-- @data@\/@newtype@ instance.</span><span>
</span><span id="line-682"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkInstTyTcOcc"><span class="hs-identifier hs-type">mkInstTyTcOcc</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>                 </span><span class="hs-comment">-- ^ Family name, e.g. @Map@</span><span>
</span><span id="line-683"></span><span>              </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span>                 </span><span class="hs-comment">-- ^ avoid these Occs</span><span>
</span><span id="line-684"></span><span>              </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>                </span><span class="hs-comment">-- ^ @R:Map@</span><span>
</span><span id="line-685"></span><span id="mkInstTyTcOcc"><span class="annot"><span class="annottext">mkInstTyTcOcc :: String -&gt; OccSet -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkInstTyTcOcc"><span class="hs-identifier hs-var hs-var">mkInstTyTcOcc</span></a></span></span><span> </span><span id="local-6989586621680804407"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680804407"><span class="hs-identifier hs-var">str</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; String -&gt; OccSet -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#chooseUniqueOcc"><span class="hs-identifier hs-var">chooseUniqueOcc</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#tcName"><span class="hs-identifier hs-var">tcName</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'R'</span></span><span> </span><span class="annot"><span class="annottext">Char -&gt; String -&gt; String
forall a. a -&gt; [a] -&gt; [a]
</span><span class="hs-glyph hs-var">:</span></span><span> </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">':'</span></span><span> </span><span class="annot"><span class="annottext">Char -&gt; String -&gt; String
forall a. a -&gt; [a] -&gt; [a]
</span><span class="hs-glyph hs-var">:</span></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680804407"><span class="hs-identifier hs-var">str</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-686"></span><span>
</span><span id="line-687"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkDFunOcc"><span class="hs-identifier hs-type">mkDFunOcc</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>             </span><span class="hs-comment">-- ^ Typically the class and type glommed together e.g. @OrdMaybe@.</span><span>
</span><span id="line-688"></span><span>                                </span><span class="hs-comment">-- Only used in debug mode, for extra clarity</span><span>
</span><span id="line-689"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>               </span><span class="hs-comment">-- ^ Is this a hs-boot instance DFun?</span><span>
</span><span id="line-690"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span>             </span><span class="hs-comment">-- ^ avoid these Occs</span><span>
</span><span id="line-691"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>            </span><span class="hs-comment">-- ^ E.g. @$f3OrdMaybe@</span><span>
</span><span id="line-692"></span><span>
</span><span id="line-693"></span><span class="hs-comment">-- In hs-boot files we make dict funs like $fx7ClsTy, which get bound to the real</span><span>
</span><span id="line-694"></span><span class="hs-comment">-- thing when we compile the mother module. Reason: we don't know exactly</span><span>
</span><span id="line-695"></span><span class="hs-comment">-- what the  mother module will call it.</span><span>
</span><span id="line-696"></span><span>
</span><span id="line-697"></span><span id="mkDFunOcc"><span class="annot"><span class="annottext">mkDFunOcc :: String -&gt; Bool -&gt; OccSet -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkDFunOcc"><span class="hs-identifier hs-var hs-var">mkDFunOcc</span></a></span></span><span> </span><span id="local-6989586621680804405"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680804405"><span class="hs-identifier hs-var">info_str</span></a></span></span><span> </span><span id="local-6989586621680804404"><span class="annot"><span class="annottext">Bool
</span><a href="#local-6989586621680804404"><span class="hs-identifier hs-var">is_boot</span></a></span></span><span> </span><span id="local-6989586621680804403"><span class="annot"><span class="annottext">OccSet
</span><a href="#local-6989586621680804403"><span class="hs-identifier hs-var">set</span></a></span></span><span>
</span><span id="line-698"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; String -&gt; OccSet -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#chooseUniqueOcc"><span class="hs-identifier hs-var">chooseUniqueOcc</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#VarName"><span class="hs-identifier hs-var">VarName</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680804402"><span class="hs-identifier hs-var">prefix</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; String -&gt; String
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680804405"><span class="hs-identifier hs-var">info_str</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">OccSet
</span><a href="#local-6989586621680804403"><span class="hs-identifier hs-var">set</span></a></span><span>
</span><span id="line-699"></span><span>  </span><span class="hs-keyword">where</span><span>
</span><span id="line-700"></span><span>    </span><span id="local-6989586621680804402"><span class="annot"><span class="annottext">prefix :: String
</span><a href="#local-6989586621680804402"><span class="hs-identifier hs-var hs-var">prefix</span></a></span></span><span> </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="#local-6989586621680804404"><span class="hs-identifier hs-var">is_boot</span></a></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;$fx&quot;</span></span><span>
</span><span id="line-701"></span><span>           </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="../../base/src/GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;$f&quot;</span></span><span>
</span><span id="line-702"></span><span>
</span><span id="line-703"></span><span class="hs-comment">{-
Sometimes we need to pick an OccName that has not already been used,
given a set of in-use OccNames.
-}</span><span>
</span><span id="line-707"></span><span>
</span><span id="line-708"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#chooseUniqueOcc"><span class="hs-identifier hs-type">chooseUniqueOcc</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccSet"><span class="hs-identifier hs-type">OccSet</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>
</span><span id="line-709"></span><span id="chooseUniqueOcc"><span class="annot"><span class="annottext">chooseUniqueOcc :: NameSpace -&gt; String -&gt; OccSet -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#chooseUniqueOcc"><span class="hs-identifier hs-var hs-var">chooseUniqueOcc</span></a></span></span><span> </span><span id="local-6989586621680804397"><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804397"><span class="hs-identifier hs-var">ns</span></a></span></span><span> </span><span id="local-6989586621680804396"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680804396"><span class="hs-identifier hs-var">str</span></a></span></span><span> </span><span id="local-6989586621680804395"><span class="annot"><span class="annottext">OccSet
</span><a href="#local-6989586621680804395"><span class="hs-identifier hs-var">set</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">OccName -&gt; Int -&gt; OccName
forall {t}. (Show t, Num t) =&gt; OccName -&gt; t -&gt; OccName
</span><a href="#local-6989586621680804394"><span class="hs-identifier hs-var">loop</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">NameSpace -&gt; String -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkOccName"><span class="hs-identifier hs-var">mkOccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804397"><span class="hs-identifier hs-var">ns</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680804396"><span class="hs-identifier hs-var">str</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span class="hs-glyph">::</span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span class="hs-special">)</span><span>
</span><span id="line-710"></span><span>  </span><span class="hs-keyword">where</span><span>
</span><span id="line-711"></span><span>  </span><span id="local-6989586621680804394"><span class="annot"><span class="annottext">loop :: OccName -&gt; t -&gt; OccName
</span><a href="#local-6989586621680804394"><span class="hs-identifier hs-var hs-var">loop</span></a></span></span><span> </span><span id="local-6989586621680804388"><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804388"><span class="hs-identifier hs-var">occ</span></a></span></span><span> </span><span id="local-6989586621680804387"><span class="annot"><span class="annottext">t
</span><a href="#local-6989586621680804387"><span class="hs-identifier hs-var">n</span></a></span></span><span>
</span><span id="line-712"></span><span>   </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804388"><span class="hs-identifier hs-var">occ</span></a></span><span> </span><span class="annot"><span class="annottext">OccName -&gt; OccSet -&gt; Bool
</span><a href="GHC.Types.Name.Occurrence.html#elemOccSet"><span class="hs-operator hs-var">`elemOccSet`</span></a></span><span> </span><span class="annot"><span class="annottext">OccSet
</span><a href="#local-6989586621680804395"><span class="hs-identifier hs-var">set</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">OccName -&gt; t -&gt; OccName
</span><a href="#local-6989586621680804394"><span class="hs-identifier hs-var">loop</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">NameSpace -&gt; String -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkOccName"><span class="hs-identifier hs-var">mkOccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804397"><span class="hs-identifier hs-var">ns</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680804396"><span class="hs-identifier hs-var">str</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; String -&gt; String
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">t -&gt; String
forall a. Show a =&gt; a -&gt; String
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">t
</span><a href="#local-6989586621680804387"><span class="hs-identifier hs-var">n</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">t
</span><a href="#local-6989586621680804387"><span class="hs-identifier hs-var">n</span></a></span><span class="annot"><span class="annottext">t -&gt; t -&gt; t
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2B"><span class="hs-operator hs-var">+</span></a></span><span class="annot"><span class="annottext">t
</span><span class="hs-number">1</span></span><span class="hs-special">)</span><span>
</span><span id="line-713"></span><span>   </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="../../base/src/GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804388"><span class="hs-identifier hs-var">occ</span></a></span><span>
</span><span id="line-714"></span><span>
</span><span id="line-715"></span><span class="hs-comment">{-
We used to add a '$m' to indicate a method, but that gives rise to bad
error messages from the type checker when we print the function name or pattern
of an instance-decl binding.  Why? Because the binding is zapped
to use the method name in place of the selector name.
(See GHC.Tc.TyCl.Class.tcMethodBind)

The way it is now, -ddump-xx output may look confusing, but
you can always say -dppr-debug to get the uniques.

However, we *do* have to zap the first character to be lower case,
because overloaded constructors (blarg) generate methods too.
And convert to VarName space

e.g. a call to constructor MkFoo where
        data (Ord a) =&gt; Foo a = MkFoo a

If this is necessary, we do it by prefixing '$m'.  These
guys never show up in error messages.  What a hack.
-}</span><span>
</span><span id="line-735"></span><span>
</span><span id="line-736"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkMethodOcc"><span class="hs-identifier hs-type">mkMethodOcc</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span>
</span><span id="line-737"></span><span id="mkMethodOcc"><span class="annot"><span class="annottext">mkMethodOcc :: OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mkMethodOcc"><span class="hs-identifier hs-var hs-var">mkMethodOcc</span></a></span></span><span> </span><span id="local-6989586621680804385"><span class="annot"><span class="annottext">occ :: OccName
</span><a href="#local-6989586621680804385"><span class="hs-identifier hs-var">occ</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#VarName"><span class="hs-identifier hs-var">VarName</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804385"><span class="hs-identifier hs-var">occ</span></a></span><span>
</span><span id="line-738"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#mkMethodOcc"><span class="hs-identifier hs-var">mkMethodOcc</span></a></span><span> </span><span id="local-6989586621680804384"><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804384"><span class="hs-identifier hs-var">occ</span></a></span></span><span>                     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#mk_simple_deriv"><span class="hs-identifier hs-var">mk_simple_deriv</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#varName"><span class="hs-identifier hs-var">varName</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><span class="hs-string">&quot;$m&quot;</span></span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804384"><span class="hs-identifier hs-var">occ</span></a></span><span>
</span><span id="line-739"></span><span>
</span><span id="line-740"></span><span class="hs-comment">{-
************************************************************************
*                                                                      *
\subsection{Tidying them up}
*                                                                      *
************************************************************************

Before we print chunks of code we like to rename it so that
we don't have to print lots of silly uniques in it.  But we mustn't
accidentally introduce name clashes!  So the idea is that we leave the
OccName alone unless it accidentally clashes with one that is already
in scope; if so, we tack on '1' at the end and try again, then '2', and
so on till we find a unique one.

There's a wrinkle for operators.  Consider '&gt;&gt;='.  We can't use '&gt;&gt;=1'
because that isn't a single lexeme.  So we encode it to 'lle' and *then*
tack on the '1', if necessary.

Note [TidyOccEnv]
~~~~~~~~~~~~~~~~~
type TidyOccEnv = UniqFM Int

* Domain = The OccName's FastString. These FastStrings are &quot;taken&quot;;
           make sure that we don't re-use

* Int, n = A plausible starting point for new guesses
           There is no guarantee that &quot;FSn&quot; is available;
           you must look that up in the TidyOccEnv.  But
           it's a good place to start looking.

* When looking for a renaming for &quot;foo2&quot; we strip off the &quot;2&quot; and start
  with &quot;foo&quot;.  Otherwise if we tidy twice we get silly names like foo23.

  However, if it started with digits at the end, we always make a name
  with digits at the end, rather than shortening &quot;foo2&quot; to just &quot;foo&quot;,
  even if &quot;foo&quot; is unused.  Reasons:
     - Plain &quot;foo&quot; might be used later
     - We use trailing digits to subtly indicate a unification variable
       in typechecker error message; see TypeRep.tidyTyVarBndr

We have to take care though! Consider a machine-generated module (#10370)
  module Foo where
     a1 = e1
     a2 = e2
     ...
     a2000 = e2000
Then &quot;a1&quot;, &quot;a2&quot; etc are all marked taken.  But now if we come across &quot;a7&quot; again,
we have to do a linear search to find a free one, &quot;a2001&quot;.  That might just be
acceptable once.  But if we now come across &quot;a8&quot; again, we don't want to repeat
that search.

So we use the TidyOccEnv mapping for &quot;a&quot; (not &quot;a7&quot; or &quot;a8&quot;) as our base for
starting the search; and we make sure to update the starting point for &quot;a&quot;
after we allocate a new one.


Note [Tidying multiple names at once]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Consider

    &gt; :t (id,id,id)

Every id contributes a type variable to the type signature, and all of them are
&quot;a&quot;. If we tidy them one by one, we get

    (id,id,id) :: (a2 -&gt; a2, a1 -&gt; a1, a -&gt; a)

which is a bit unfortunate, as it unfairly renames only two of them. What we
would like to see is

    (id,id,id) :: (a3 -&gt; a3, a2 -&gt; a2, a1 -&gt; a1)

To achieve this, the function avoidClashesOccEnv can be used to prepare the
TidyEnv, by &#8220;blocking&#8221; every name that occurs twice in the map. This way, none
of the &quot;a&quot;s will get the privilege of keeping this name, and all of them will
get a suitable number by tidyOccName.

This prepared TidyEnv can then be used with tidyOccName. See tidyTyCoVarBndrs
for an example where this is used.

This is #12382.

-}</span><span>
</span><span id="line-824"></span><span>
</span><span id="line-825"></span><span class="hs-keyword">type</span><span> </span><span id="TidyOccEnv"><span class="annot"><a href="GHC.Types.Name.Occurrence.html#TidyOccEnv"><span class="hs-identifier hs-var">TidyOccEnv</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><a href="GHC.Types.Unique.FM.html#UniqFM"><span class="hs-identifier hs-type">UniqFM</span></a></span><span> </span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span>    </span><span class="hs-comment">-- The in-scope OccNames</span><span>
</span><span id="line-826"></span><span>  </span><span class="hs-comment">-- See Note [TidyOccEnv]</span><span>
</span><span id="line-827"></span><span>
</span><span id="line-828"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#emptyTidyOccEnv"><span class="hs-identifier hs-type">emptyTidyOccEnv</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#TidyOccEnv"><span class="hs-identifier hs-type">TidyOccEnv</span></a></span><span>
</span><span id="line-829"></span><span id="emptyTidyOccEnv"><span class="annot"><span class="annottext">emptyTidyOccEnv :: TidyOccEnv
</span><a href="GHC.Types.Name.Occurrence.html#emptyTidyOccEnv"><span class="hs-identifier hs-var hs-var">emptyTidyOccEnv</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">TidyOccEnv
forall key elt. UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#emptyUFM"><span class="hs-identifier hs-var">emptyUFM</span></a></span><span>
</span><span id="line-830"></span><span>
</span><span id="line-831"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#initTidyOccEnv"><span class="hs-identifier hs-type">initTidyOccEnv</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#TidyOccEnv"><span class="hs-identifier hs-type">TidyOccEnv</span></a></span><span>       </span><span class="hs-comment">-- Initialise with names to avoid!</span><span>
</span><span id="line-832"></span><span id="initTidyOccEnv"><span class="annot"><span class="annottext">initTidyOccEnv :: [OccName] -&gt; TidyOccEnv
</span><a href="GHC.Types.Name.Occurrence.html#initTidyOccEnv"><span class="hs-identifier hs-var hs-var">initTidyOccEnv</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(TidyOccEnv -&gt; OccName -&gt; TidyOccEnv)
-&gt; TidyOccEnv -&gt; [OccName] -&gt; TidyOccEnv
forall (t :: * -&gt; *) b a.
Foldable t =&gt;
(b -&gt; a -&gt; b) -&gt; b -&gt; t a -&gt; b
</span><a href="../../base/src/Data.Foldable.html#foldl%27"><span class="hs-identifier hs-var">foldl'</span></a></span><span> </span><span class="annot"><span class="annottext">TidyOccEnv -&gt; OccName -&gt; TidyOccEnv
forall {elt}.
Num elt =&gt;
UniqFM FastString elt -&gt; OccName -&gt; UniqFM FastString elt
</span><a href="#local-6989586621680804382"><span class="hs-identifier hs-var">add</span></a></span><span> </span><span class="annot"><span class="annottext">TidyOccEnv
forall key elt. UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#emptyUFM"><span class="hs-identifier hs-var">emptyUFM</span></a></span><span>
</span><span id="line-833"></span><span>  </span><span class="hs-keyword">where</span><span>
</span><span id="line-834"></span><span>    </span><span id="local-6989586621680804382"><span class="annot"><span class="annottext">add :: UniqFM FastString elt -&gt; OccName -&gt; UniqFM FastString elt
</span><a href="#local-6989586621680804382"><span class="hs-identifier hs-var hs-var">add</span></a></span></span><span> </span><span id="local-6989586621680804378"><span class="annot"><span class="annottext">UniqFM FastString elt
</span><a href="#local-6989586621680804378"><span class="hs-identifier hs-var">env</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><span class="hs-identifier">_</span></span><span> </span><span id="local-6989586621680804377"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804377"><span class="hs-identifier hs-var">fs</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqFM FastString elt -&gt; FastString -&gt; elt -&gt; UniqFM FastString elt
forall key elt.
Uniquable key =&gt;
UniqFM key elt -&gt; key -&gt; elt -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#addToUFM"><span class="hs-identifier hs-var">addToUFM</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM FastString elt
</span><a href="#local-6989586621680804378"><span class="hs-identifier hs-var">env</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804377"><span class="hs-identifier hs-var">fs</span></a></span><span> </span><span class="annot"><span class="annottext">elt
</span><span class="hs-number">1</span></span><span>
</span><span id="line-835"></span><span>
</span><span id="line-836"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#delTidyOccEnvList"><span class="hs-identifier hs-type">delTidyOccEnvList</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#TidyOccEnv"><span class="hs-identifier hs-type">TidyOccEnv</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#TidyOccEnv"><span class="hs-identifier hs-type">TidyOccEnv</span></a></span><span>
</span><span id="line-837"></span><span id="delTidyOccEnvList"><span class="annot"><span class="annottext">delTidyOccEnvList :: TidyOccEnv -&gt; [FastString] -&gt; TidyOccEnv
</span><a href="GHC.Types.Name.Occurrence.html#delTidyOccEnvList"><span class="hs-identifier hs-var hs-var">delTidyOccEnvList</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">TidyOccEnv -&gt; [FastString] -&gt; TidyOccEnv
forall key elt.
Uniquable key =&gt;
UniqFM key elt -&gt; [key] -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#delListFromUFM"><span class="hs-identifier hs-var">delListFromUFM</span></a></span><span>
</span><span id="line-838"></span><span>
</span><span id="line-839"></span><span class="hs-comment">-- see Note [Tidying multiple names at once]</span><span>
</span><span id="line-840"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#avoidClashesOccEnv"><span class="hs-identifier hs-type">avoidClashesOccEnv</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#TidyOccEnv"><span class="hs-identifier hs-type">TidyOccEnv</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#TidyOccEnv"><span class="hs-identifier hs-type">TidyOccEnv</span></a></span><span>
</span><span id="line-841"></span><span id="avoidClashesOccEnv"><span class="annot"><span class="annottext">avoidClashesOccEnv :: TidyOccEnv -&gt; [OccName] -&gt; TidyOccEnv
</span><a href="GHC.Types.Name.Occurrence.html#avoidClashesOccEnv"><span class="hs-identifier hs-var hs-var">avoidClashesOccEnv</span></a></span></span><span> </span><span id="local-6989586621680804376"><span class="annot"><span class="annottext">TidyOccEnv
</span><a href="#local-6989586621680804376"><span class="hs-identifier hs-var">env</span></a></span></span><span> </span><span id="local-6989586621680804375"><span class="annot"><span class="annottext">[OccName]
</span><a href="#local-6989586621680804375"><span class="hs-identifier hs-var">occs</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">TidyOccEnv -&gt; UniqFM FastString () -&gt; [OccName] -&gt; TidyOccEnv
forall {elt}.
Num elt =&gt;
UniqFM FastString elt
-&gt; UniqFM FastString () -&gt; [OccName] -&gt; UniqFM FastString elt
</span><a href="#local-6989586621680804374"><span class="hs-identifier hs-var">go</span></a></span><span> </span><span class="annot"><span class="annottext">TidyOccEnv
</span><a href="#local-6989586621680804376"><span class="hs-identifier hs-var">env</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM FastString ()
forall key elt. UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#emptyUFM"><span class="hs-identifier hs-var">emptyUFM</span></a></span><span> </span><span class="annot"><span class="annottext">[OccName]
</span><a href="#local-6989586621680804375"><span class="hs-identifier hs-var">occs</span></a></span><span>
</span><span id="line-842"></span><span>  </span><span class="hs-keyword">where</span><span>
</span><span id="line-843"></span><span>    </span><span id="local-6989586621680804374"><span class="annot"><span class="annottext">go :: UniqFM FastString elt
-&gt; UniqFM FastString () -&gt; [OccName] -&gt; UniqFM FastString elt
</span><a href="#local-6989586621680804374"><span class="hs-identifier hs-var hs-var">go</span></a></span></span><span> </span><span id="local-6989586621680804367"><span class="annot"><span class="annottext">UniqFM FastString elt
</span><a href="#local-6989586621680804367"><span class="hs-identifier hs-var">env</span></a></span></span><span> </span><span class="annot"><span class="annottext">UniqFM FastString ()
</span><span class="hs-identifier">_</span></span><span>        </span><span class="hs-special">[</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqFM FastString elt
</span><a href="#local-6989586621680804367"><span class="hs-identifier hs-var">env</span></a></span><span>
</span><span id="line-844"></span><span>    </span><span class="annot"><a href="#local-6989586621680804374"><span class="hs-identifier hs-var">go</span></a></span><span> </span><span id="local-6989586621680804366"><span class="annot"><span class="annottext">UniqFM FastString elt
</span><a href="#local-6989586621680804366"><span class="hs-identifier hs-var">env</span></a></span></span><span> </span><span id="local-6989586621680804365"><span class="annot"><span class="annottext">UniqFM FastString ()
</span><a href="#local-6989586621680804365"><span class="hs-identifier hs-var">seenOnce</span></a></span></span><span> </span><span class="hs-special">(</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><span class="hs-identifier">_</span></span><span> </span><span id="local-6989586621680804364"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804364"><span class="hs-identifier hs-var">fs</span></a></span></span><span class="hs-special">)</span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span id="local-6989586621680804363"><span class="annot"><span class="annottext">[OccName]
</span><a href="#local-6989586621680804363"><span class="hs-identifier hs-var">occs</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-845"></span><span>      </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804364"><span class="hs-identifier hs-var">fs</span></a></span><span> </span><span class="annot"><span class="annottext">FastString -&gt; UniqFM FastString elt -&gt; Bool
forall key elt. Uniquable key =&gt; key -&gt; UniqFM key elt -&gt; Bool
</span><a href="GHC.Types.Unique.FM.html#elemUFM"><span class="hs-operator hs-var">`elemUFM`</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM FastString elt
</span><a href="#local-6989586621680804366"><span class="hs-identifier hs-var">env</span></a></span><span>      </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqFM FastString elt
-&gt; UniqFM FastString () -&gt; [OccName] -&gt; UniqFM FastString elt
</span><a href="#local-6989586621680804374"><span class="hs-identifier hs-var">go</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM FastString elt
</span><a href="#local-6989586621680804366"><span class="hs-identifier hs-var">env</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM FastString ()
</span><a href="#local-6989586621680804365"><span class="hs-identifier hs-var">seenOnce</span></a></span><span>                  </span><span class="annot"><span class="annottext">[OccName]
</span><a href="#local-6989586621680804363"><span class="hs-identifier hs-var">occs</span></a></span><span>
</span><span id="line-846"></span><span>      </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804364"><span class="hs-identifier hs-var">fs</span></a></span><span> </span><span class="annot"><span class="annottext">FastString -&gt; UniqFM FastString () -&gt; Bool
forall key elt. Uniquable key =&gt; key -&gt; UniqFM key elt -&gt; Bool
</span><a href="GHC.Types.Unique.FM.html#elemUFM"><span class="hs-operator hs-var">`elemUFM`</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM FastString ()
</span><a href="#local-6989586621680804365"><span class="hs-identifier hs-var">seenOnce</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqFM FastString elt
-&gt; UniqFM FastString () -&gt; [OccName] -&gt; UniqFM FastString elt
</span><a href="#local-6989586621680804374"><span class="hs-identifier hs-var">go</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">UniqFM FastString elt -&gt; FastString -&gt; elt -&gt; UniqFM FastString elt
forall key elt.
Uniquable key =&gt;
UniqFM key elt -&gt; key -&gt; elt -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#addToUFM"><span class="hs-identifier hs-var">addToUFM</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM FastString elt
</span><a href="#local-6989586621680804366"><span class="hs-identifier hs-var">env</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804364"><span class="hs-identifier hs-var">fs</span></a></span><span> </span><span class="annot"><span class="annottext">elt
</span><span class="hs-number">1</span></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">UniqFM FastString ()
</span><a href="#local-6989586621680804365"><span class="hs-identifier hs-var">seenOnce</span></a></span><span>  </span><span class="annot"><span class="annottext">[OccName]
</span><a href="#local-6989586621680804363"><span class="hs-identifier hs-var">occs</span></a></span><span>
</span><span id="line-847"></span><span>      </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="../../base/src/GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>             </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqFM FastString elt
-&gt; UniqFM FastString () -&gt; [OccName] -&gt; UniqFM FastString elt
</span><a href="#local-6989586621680804374"><span class="hs-identifier hs-var">go</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM FastString elt
</span><a href="#local-6989586621680804366"><span class="hs-identifier hs-var">env</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">UniqFM FastString () -&gt; FastString -&gt; () -&gt; UniqFM FastString ()
forall key elt.
Uniquable key =&gt;
UniqFM key elt -&gt; key -&gt; elt -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#addToUFM"><span class="hs-identifier hs-var">addToUFM</span></a></span><span> </span><span class="annot"><span class="annottext">UniqFM FastString ()
</span><a href="#local-6989586621680804365"><span class="hs-identifier hs-var">seenOnce</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804364"><span class="hs-identifier hs-var">fs</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">[OccName]
</span><a href="#local-6989586621680804363"><span class="hs-identifier hs-var">occs</span></a></span><span>
</span><span id="line-848"></span><span>
</span><span id="line-849"></span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#tidyOccName"><span class="hs-identifier hs-type">tidyOccName</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#TidyOccEnv"><span class="hs-identifier hs-type">TidyOccEnv</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#TidyOccEnv"><span class="hs-identifier hs-type">TidyOccEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-850"></span><span id="tidyOccName"><span class="annot"><span class="annottext">tidyOccName :: TidyOccEnv -&gt; OccName -&gt; (TidyOccEnv, OccName)
</span><a href="GHC.Types.Name.Occurrence.html#tidyOccName"><span class="hs-identifier hs-var hs-var">tidyOccName</span></a></span></span><span> </span><span id="local-6989586621680804362"><span class="annot"><span class="annottext">TidyOccEnv
</span><a href="#local-6989586621680804362"><span class="hs-identifier hs-var">env</span></a></span></span><span> </span><span id="local-6989586621680804361"><span class="annot"><span class="annottext">occ :: OccName
</span><a href="#local-6989586621680804361"><span class="hs-identifier hs-var">occ</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span id="local-6989586621680804360"><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804360"><span class="hs-identifier hs-var">occ_sp</span></a></span></span><span> </span><span id="local-6989586621680804359"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804359"><span class="hs-identifier hs-var">fs</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-851"></span><span>  </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool -&gt; Bool
</span><span class="hs-identifier hs-var">not</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804359"><span class="hs-identifier hs-var">fs</span></a></span><span> </span><span class="annot"><span class="annottext">FastString -&gt; TidyOccEnv -&gt; Bool
forall key elt. Uniquable key =&gt; key -&gt; UniqFM key elt -&gt; Bool
</span><a href="GHC.Types.Unique.FM.html#elemUFM"><span class="hs-operator hs-var">`elemUFM`</span></a></span><span> </span><span class="annot"><span class="annottext">TidyOccEnv
</span><a href="#local-6989586621680804362"><span class="hs-identifier hs-var">env</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-852"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="hs-comment">-- Desired OccName is free, so use it,</span><span>
</span><span id="line-853"></span><span>    </span><span class="hs-comment">-- and record in 'env' that it's no longer available</span><span>
</span><span id="line-854"></span><span>    </span><span class="hs-special">(</span><span class="annot"><span class="annottext">TidyOccEnv -&gt; FastString -&gt; Int -&gt; TidyOccEnv
forall key elt.
Uniquable key =&gt;
UniqFM key elt -&gt; key -&gt; elt -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#addToUFM"><span class="hs-identifier hs-var">addToUFM</span></a></span><span> </span><span class="annot"><span class="annottext">TidyOccEnv
</span><a href="#local-6989586621680804362"><span class="hs-identifier hs-var">env</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804359"><span class="hs-identifier hs-var">fs</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">1</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">OccName
</span><a href="#local-6989586621680804361"><span class="hs-identifier hs-var">occ</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-855"></span><span>
</span><span id="line-856"></span><span>  </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="../../base/src/GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>
</span><span id="line-857"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">TidyOccEnv -&gt; FastString -&gt; Maybe Int
forall key elt. Uniquable key =&gt; UniqFM key elt -&gt; key -&gt; Maybe elt
</span><a href="GHC.Types.Unique.FM.html#lookupUFM"><span class="hs-identifier hs-var">lookupUFM</span></a></span><span> </span><span class="annot"><span class="annottext">TidyOccEnv
</span><a href="#local-6989586621680804362"><span class="hs-identifier hs-var">env</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804357"><span class="hs-identifier hs-var">base1</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-858"></span><span>       </span><span class="annot"><span class="annottext">Maybe Int
</span><a href="../../base/src/GHC.Maybe.html#Nothing"><span class="hs-identifier hs-var">Nothing</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">TidyOccEnv -&gt; FastString -&gt; Int -&gt; TidyOccEnv
forall key elt.
Uniquable key =&gt;
UniqFM key elt -&gt; key -&gt; elt -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#addToUFM"><span class="hs-identifier hs-var">addToUFM</span></a></span><span> </span><span class="annot"><span class="annottext">TidyOccEnv
</span><a href="#local-6989586621680804362"><span class="hs-identifier hs-var">env</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804357"><span class="hs-identifier hs-var">base1</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">2</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-var">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804360"><span class="hs-identifier hs-var">occ_sp</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804357"><span class="hs-identifier hs-var">base1</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-859"></span><span>       </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Just"><span class="hs-identifier hs-type">Just</span></a></span><span> </span><span id="local-6989586621680804356"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680804356"><span class="hs-identifier hs-var">n</span></a></span></span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; (TidyOccEnv, OccName)
</span><a href="#local-6989586621680804355"><span class="hs-identifier hs-var">find</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">1</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680804356"><span class="hs-identifier hs-var">n</span></a></span><span>
</span><span id="line-860"></span><span>  </span><span class="hs-keyword">where</span><span>
</span><span id="line-861"></span><span>    </span><span class="annot"><a href="#local-6989586621680804354"><span class="hs-identifier hs-type">base</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>  </span><span class="hs-comment">-- Drop trailing digits (see Note [TidyOccEnv])</span><span>
</span><span id="line-862"></span><span>    </span><span id="local-6989586621680804354"><span class="annot"><span class="annottext">base :: String
</span><a href="#local-6989586621680804354"><span class="hs-identifier hs-var hs-var">base</span></a></span></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Char -&gt; Bool) -&gt; String -&gt; String
forall a. (a -&gt; Bool) -&gt; [a] -&gt; [a]
</span><a href="GHC.Utils.Misc.html#dropWhileEndLE"><span class="hs-identifier hs-var">dropWhileEndLE</span></a></span><span> </span><span class="annot"><span class="annottext">Char -&gt; Bool
</span><a href="../../base/src/GHC.Unicode.html#isDigit"><span class="hs-identifier hs-var">isDigit</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">FastString -&gt; String
</span><a href="GHC.Data.FastString.html#unpackFS"><span class="hs-identifier hs-var">unpackFS</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804359"><span class="hs-identifier hs-var">fs</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-863"></span><span>    </span><span id="local-6989586621680804357"><span class="annot"><span class="annottext">base1 :: FastString
</span><a href="#local-6989586621680804357"><span class="hs-identifier hs-var hs-var">base1</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; FastString
</span><a href="GHC.Data.FastString.html#mkFastString"><span class="hs-identifier hs-var">mkFastString</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680804354"><span class="hs-identifier hs-var">base</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; String -&gt; String
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;1&quot;</span></span><span class="hs-special">)</span><span>
</span><span id="line-864"></span><span>
</span><span id="line-865"></span><span>    </span><span id="local-6989586621680804355"><span class="annot"><span class="annottext">find :: Int -&gt; Int -&gt; (TidyOccEnv, OccName)
</span><a href="#local-6989586621680804355"><span class="hs-identifier hs-var hs-var">find</span></a></span></span><span> </span><span class="hs-glyph">!</span><span id="local-6989586621680804345"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680804345"><span class="hs-identifier hs-var">k</span></a></span></span><span> </span><span class="hs-glyph">!</span><span id="local-6989586621680804344"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680804344"><span class="hs-identifier hs-var">n</span></a></span></span><span>
</span><span id="line-866"></span><span>      </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">TidyOccEnv -&gt; FastString -&gt; Maybe Int
forall key elt. Uniquable key =&gt; UniqFM key elt -&gt; key -&gt; Maybe elt
</span><a href="GHC.Types.Unique.FM.html#lookupUFM"><span class="hs-identifier hs-var">lookupUFM</span></a></span><span> </span><span class="annot"><span class="annottext">TidyOccEnv
</span><a href="#local-6989586621680804362"><span class="hs-identifier hs-var">env</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804343"><span class="hs-identifier hs-var">new_fs</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-867"></span><span>          </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Just"><span class="hs-identifier hs-type">Just</span></a></span><span> </span><span class="hs-special">{</span><span class="hs-special">}</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; (TidyOccEnv, OccName)
</span><a href="#local-6989586621680804355"><span class="hs-identifier hs-var">find</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680804345"><span class="hs-identifier hs-var">k</span></a></span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2B"><span class="hs-operator hs-var">+</span></a></span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">1</span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680804344"><span class="hs-identifier hs-var">n</span></a></span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2B"><span class="hs-operator hs-var">+</span></a></span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680804345"><span class="hs-identifier hs-var">k</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-868"></span><span>                       </span><span class="hs-comment">-- By using n+k, the n argument to find goes</span><span>
</span><span id="line-869"></span><span>                       </span><span class="hs-comment">--    1, add 1, add 2, add 3, etc which</span><span>
</span><span id="line-870"></span><span>                       </span><span class="hs-comment">-- moves at quadratic speed through a dense patch</span><span>
</span><span id="line-871"></span><span>
</span><span id="line-872"></span><span>          </span><span class="annot"><span class="annottext">Maybe Int
</span><a href="../../base/src/GHC.Maybe.html#Nothing"><span class="hs-identifier hs-var">Nothing</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">TidyOccEnv
</span><a href="#local-6989586621680804342"><span class="hs-identifier hs-var">new_env</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-var">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804360"><span class="hs-identifier hs-var">occ_sp</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804343"><span class="hs-identifier hs-var">new_fs</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-873"></span><span>       </span><span class="hs-keyword">where</span><span>
</span><span id="line-874"></span><span>         </span><span id="local-6989586621680804343"><span class="annot"><span class="annottext">new_fs :: FastString
</span><a href="#local-6989586621680804343"><span class="hs-identifier hs-var hs-var">new_fs</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; FastString
</span><a href="GHC.Data.FastString.html#mkFastString"><span class="hs-identifier hs-var">mkFastString</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680804354"><span class="hs-identifier hs-var">base</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; String -&gt; String
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; String
forall a. Show a =&gt; a -&gt; String
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680804344"><span class="hs-identifier hs-var">n</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-875"></span><span>         </span><span id="local-6989586621680804342"><span class="annot"><span class="annottext">new_env :: TidyOccEnv
</span><a href="#local-6989586621680804342"><span class="hs-identifier hs-var hs-var">new_env</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">TidyOccEnv -&gt; FastString -&gt; Int -&gt; TidyOccEnv
forall key elt.
Uniquable key =&gt;
UniqFM key elt -&gt; key -&gt; elt -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#addToUFM"><span class="hs-identifier hs-var">addToUFM</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">TidyOccEnv -&gt; FastString -&gt; Int -&gt; TidyOccEnv
forall key elt.
Uniquable key =&gt;
UniqFM key elt -&gt; key -&gt; elt -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#addToUFM"><span class="hs-identifier hs-var">addToUFM</span></a></span><span> </span><span class="annot"><span class="annottext">TidyOccEnv
</span><a href="#local-6989586621680804362"><span class="hs-identifier hs-var">env</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804343"><span class="hs-identifier hs-var">new_fs</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">1</span></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804357"><span class="hs-identifier hs-var">base1</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680804344"><span class="hs-identifier hs-var">n</span></a></span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2B"><span class="hs-operator hs-var">+</span></a></span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">1</span></span><span class="hs-special">)</span><span>
</span><span id="line-876"></span><span>                     </span><span class="hs-comment">-- Update:  base1,  so that next time we'll start where we left off</span><span>
</span><span id="line-877"></span><span>                     </span><span class="hs-comment">--          new_fs, so that we know it is taken</span><span>
</span><span id="line-878"></span><span>                     </span><span class="hs-comment">-- If they are the same (n==1), the former wins</span><span>
</span><span id="line-879"></span><span>                     </span><span class="hs-comment">-- See Note [TidyOccEnv]</span><span>
</span><span id="line-880"></span><span>
</span><span id="line-881"></span><span>
</span><span id="line-882"></span><span class="hs-comment">{-
************************************************************************
*                                                                      *
                Binary instance
    Here rather than in GHC.Iface.Binary because OccName is abstract
*                                                                      *
************************************************************************
-}</span><span>
</span><span id="line-890"></span><span>
</span><span id="line-891"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621680804333"><span class="annot"><a href="GHC.Utils.Binary.html#Binary"><span class="hs-identifier hs-type">Binary</span></a></span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#NameSpace"><span class="hs-identifier hs-type">NameSpace</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-892"></span><span>    </span><span id="local-6989586621680804325"><span class="annot"><span class="annottext">put_ :: BinHandle -&gt; NameSpace -&gt; IO ()
</span><a href="GHC.Utils.Binary.html#put_"><span class="hs-identifier hs-var hs-var hs-var hs-var">put_</span></a></span></span><span> </span><span id="local-6989586621680804323"><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680804323"><span class="hs-identifier hs-var">bh</span></a></span></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#VarName"><span class="hs-identifier hs-var">VarName</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-893"></span><span>            </span><span class="annot"><span class="annottext">BinHandle -&gt; Word8 -&gt; IO ()
</span><a href="GHC.Utils.Binary.html#putByte"><span class="hs-identifier hs-var">putByte</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680804323"><span class="hs-identifier hs-var">bh</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">0</span></span><span>
</span><span id="line-894"></span><span>    </span><span class="annot"><a href="GHC.Utils.Binary.html#put_"><span class="hs-identifier hs-var">put_</span></a></span><span> </span><span id="local-6989586621680804321"><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680804321"><span class="hs-identifier hs-var">bh</span></a></span></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#DataName"><span class="hs-identifier hs-var">DataName</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-895"></span><span>            </span><span class="annot"><span class="annottext">BinHandle -&gt; Word8 -&gt; IO ()
</span><a href="GHC.Utils.Binary.html#putByte"><span class="hs-identifier hs-var">putByte</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680804321"><span class="hs-identifier hs-var">bh</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">1</span></span><span>
</span><span id="line-896"></span><span>    </span><span class="annot"><a href="GHC.Utils.Binary.html#put_"><span class="hs-identifier hs-var">put_</span></a></span><span> </span><span id="local-6989586621680804320"><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680804320"><span class="hs-identifier hs-var">bh</span></a></span></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TvName"><span class="hs-identifier hs-var">TvName</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-897"></span><span>            </span><span class="annot"><span class="annottext">BinHandle -&gt; Word8 -&gt; IO ()
</span><a href="GHC.Utils.Binary.html#putByte"><span class="hs-identifier hs-var">putByte</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680804320"><span class="hs-identifier hs-var">bh</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">2</span></span><span>
</span><span id="line-898"></span><span>    </span><span class="annot"><a href="GHC.Utils.Binary.html#put_"><span class="hs-identifier hs-var">put_</span></a></span><span> </span><span id="local-6989586621680804319"><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680804319"><span class="hs-identifier hs-var">bh</span></a></span></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TcClsName"><span class="hs-identifier hs-var">TcClsName</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-899"></span><span>            </span><span class="annot"><span class="annottext">BinHandle -&gt; Word8 -&gt; IO ()
</span><a href="GHC.Utils.Binary.html#putByte"><span class="hs-identifier hs-var">putByte</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680804319"><span class="hs-identifier hs-var">bh</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">3</span></span><span>
</span><span id="line-900"></span><span>    </span><span id="local-6989586621680804305"><span class="annot"><span class="annottext">get :: BinHandle -&gt; IO NameSpace
</span><a href="GHC.Utils.Binary.html#get"><span class="hs-identifier hs-var hs-var hs-var hs-var">get</span></a></span></span><span> </span><span id="local-6989586621680804303"><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680804303"><span class="hs-identifier hs-var">bh</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-901"></span><span>            </span><span id="local-6989586621680804302"><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621680804302"><span class="hs-identifier hs-var">h</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">BinHandle -&gt; IO Word8
</span><a href="GHC.Utils.Binary.html#getByte"><span class="hs-identifier hs-var">getByte</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680804303"><span class="hs-identifier hs-var">bh</span></a></span><span>
</span><span id="line-902"></span><span>            </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621680804302"><span class="hs-identifier hs-var">h</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-903"></span><span>              </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">0</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">do</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; IO NameSpace
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#VarName"><span class="hs-identifier hs-var">VarName</span></a></span><span>
</span><span id="line-904"></span><span>              </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">1</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">do</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; IO NameSpace
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#DataName"><span class="hs-identifier hs-var">DataName</span></a></span><span>
</span><span id="line-905"></span><span>              </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">2</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">do</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; IO NameSpace
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TvName"><span class="hs-identifier hs-var">TvName</span></a></span><span>
</span><span id="line-906"></span><span>              </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">do</span><span> </span><span class="annot"><span class="annottext">NameSpace -&gt; IO NameSpace
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="GHC.Types.Name.Occurrence.html#TcClsName"><span class="hs-identifier hs-var">TcClsName</span></a></span><span>
</span><span id="line-907"></span><span>
</span><span id="line-908"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621680804298"><span class="annot"><a href="GHC.Utils.Binary.html#Binary"><span class="hs-identifier hs-type">Binary</span></a></span><span> </span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-909"></span><span>    </span><span id="local-6989586621680804292"><span class="annot"><span class="annottext">put_ :: BinHandle -&gt; OccName -&gt; IO ()
</span><a href="#local-6989586621680804292"><span class="hs-identifier hs-var hs-var hs-var hs-var">put_</span></a></span></span><span> </span><span id="local-6989586621680804291"><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680804291"><span class="hs-identifier hs-var">bh</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-type">OccName</span></a></span><span> </span><span id="local-6989586621680804290"><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804290"><span class="hs-identifier hs-var">aa</span></a></span></span><span> </span><span id="local-6989586621680804289"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804289"><span class="hs-identifier hs-var">ab</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-910"></span><span>            </span><span class="annot"><span class="annottext">BinHandle -&gt; NameSpace -&gt; IO ()
forall a. Binary a =&gt; BinHandle -&gt; a -&gt; IO ()
</span><a href="GHC.Utils.Binary.html#put_"><span class="hs-identifier hs-var">put_</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680804291"><span class="hs-identifier hs-var">bh</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804290"><span class="hs-identifier hs-var">aa</span></a></span><span>
</span><span id="line-911"></span><span>            </span><span class="annot"><span class="annottext">BinHandle -&gt; FastString -&gt; IO ()
forall a. Binary a =&gt; BinHandle -&gt; a -&gt; IO ()
</span><a href="GHC.Utils.Binary.html#put_"><span class="hs-identifier hs-var">put_</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680804291"><span class="hs-identifier hs-var">bh</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804289"><span class="hs-identifier hs-var">ab</span></a></span><span>
</span><span id="line-912"></span><span>    </span><span id="local-6989586621680804283"><span class="annot"><span class="annottext">get :: BinHandle -&gt; IO OccName
</span><a href="#local-6989586621680804283"><span class="hs-identifier hs-var hs-var hs-var hs-var">get</span></a></span></span><span> </span><span id="local-6989586621680804282"><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680804282"><span class="hs-identifier hs-var">bh</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-913"></span><span>          </span><span id="local-6989586621680804281"><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804281"><span class="hs-identifier hs-var">aa</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">BinHandle -&gt; IO NameSpace
forall a. Binary a =&gt; BinHandle -&gt; IO a
</span><a href="GHC.Utils.Binary.html#get"><span class="hs-identifier hs-var">get</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680804282"><span class="hs-identifier hs-var">bh</span></a></span><span>
</span><span id="line-914"></span><span>          </span><span id="local-6989586621680804280"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804280"><span class="hs-identifier hs-var">ab</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">BinHandle -&gt; IO FastString
forall a. Binary a =&gt; BinHandle -&gt; IO a
</span><a href="GHC.Utils.Binary.html#get"><span class="hs-identifier hs-var">get</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680804282"><span class="hs-identifier hs-var">bh</span></a></span><span>
</span><span id="line-915"></span><span>          </span><span class="annot"><span class="annottext">OccName -&gt; IO OccName
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">NameSpace -&gt; FastString -&gt; OccName
</span><a href="GHC.Types.Name.Occurrence.html#OccName"><span class="hs-identifier hs-var">OccName</span></a></span><span> </span><span class="annot"><span class="annottext">NameSpace
</span><a href="#local-6989586621680804281"><span class="hs-identifier hs-var">aa</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680804280"><span class="hs-identifier hs-var">ab</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-916"></span></pre></body></html>